<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Script Solution&#187; submit</title>
	<atom:link href="http://www.openscriptsolution.com/tag/submit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:22:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Record per Page Limit in Client My Ticket Page in osTicket v1.6 RC5</title>
		<link>http://www.openscriptsolution.com/2009/10/23/record-per-page-limit-in-client-my-ticket-page-in-osticket-v1-6-rc5/</link>
		<comments>http://www.openscriptsolution.com/2009/10/23/record-per-page-limit-in-client-my-ticket-page-in-osticket-v1-6-rc5/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 06:26:43 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[osTicket]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[limit]]></category>
		<category><![CDATA[maximum]]></category>
		<category><![CDATA[My Tickets]]></category>
		<category><![CDATA[onChange]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[record]]></category>
		<category><![CDATA[submit]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=662</guid>
		<description><![CDATA[Today I made another modification into osTicket version 1.6 RC5. It was about the page limit or displaying the ticket list page based on the maximum record per page. I wanted the ability for client to choose and also to change how many records per page will be displayed in the My Ticket page. After [...]]]></description>
			<content:encoded><![CDATA[<p>Today I made another modification into osTicket version 1.6 RC5. It was about the page limit or displaying the ticket list page based on the maximum record per page. I wanted the ability for client to choose and also to change how many records per page will be displayed in the My Ticket page. After I modified, then there will be a new selection for page limit upon the ticket list on that page. When client choose a specific number from that selection or combobox, then the page will be automatically adjust to that specific number and updating the ticket list properly. So here is the code. <span id="more-662"></span></p>
<ol>
<li>
Open your <strong>\include\client\tickets.inc.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>75
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;margin: 10px 0 60px 0;&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>after the last line of that code above, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>76
77
78
79
80
81
82
83
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;script language</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;JavaScript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">function</span> submitForm<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  param<span style="color: #339933;">=</span>document<span style="color: #339933;">.</span>form<span style="color: #339933;">.</span>limit<span style="color: #339933;">.</span>options<span style="color: #009900;">&#91;</span>document<span style="color: #339933;">.</span>form<span style="color: #339933;">.</span>limit<span style="color: #339933;">.</span>selectedIndex<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>value<span style="color: #339933;">;</span>
  url<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;?limit=&quot;</span><span style="color: #339933;">+</span>param<span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
  location<span style="color: #339933;">.</span>href<span style="color: #339933;">=</span>url<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
<span style="color: #339933;">&lt;</span>form name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>86
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">        &lt;td width=&quot;60%&quot; class=&quot;msg&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$showing</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&amp;nbsp;&amp;nbsp;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$results_type</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>after that line, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>87
88
89
90
91
92
93
94
95
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">            &amp;nbsp;Limit:
            &lt;select name='limit' onChange=&quot;submitForm(this.form)&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
            <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">50</span><span style="color: #339933;">;</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">+=</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span>
	    <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	       &lt;option  value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$x</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; <span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pagelimit</span><span style="color: #339933;">==</span><span style="color: #000088;">$x</span> <span style="color: #009900;">&#41;</span>?<span style="color: #0000ff;">'selected'</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$x</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/option&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
            &lt;/select&gt;
            &amp;nbsp;&amp;nbsp;</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>104
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>after that line, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>105
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

</li>
</ol>
<p>That&#8217;s all. Now client can choose the page limit when displaying the ticket list from My Ticket page.</p>
<p><img src="http://img26.imageshack.us/img26/365/osticket16rc5pagelimitc.jpg" alt="Page limit selection on My Tickets Page for Client in osTicket v1.6 RC5" /></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F10%2F23%2Frecord-per-page-limit-in-client-my-ticket-page-in-osticket-v1-6-rc5%2F&amp;title=Record%20per%20Page%20Limit%20in%20Client%20My%20Ticket%20Page%20in%20osTicket%20v1.6%20RC5" id="wpa2a_2"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/23/record-per-page-limit-in-client-my-ticket-page-in-osticket-v1-6-rc5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
