<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Summary Footer Row with XML files</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Summary Footer Row with XML files</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files#p16200</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files#p16200</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The name of this userdata should equal of the name from colModel.</p>
<p>By Example if your name is defined as</p>
<p>{name:&#39;TPS_TOTAL&#39;,index:&#39;TPS_TOTAL&#39;, width:90,editable:false},</p>
<p>then the appropriate data should be:</p>
<p>...</p>
<p>$s .= &#39;&#60;userdata name ="TPS_TOTAL"&#62;&#39;.$total_tps_jour.&#39;&#60;/userdata&#62;&#39;;</p>
</p>
<p>Hope this helps.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 03 Apr 2010 16:15:55 +0300</pubDate>
        </item>
        <item>
        	<title>mika2008 on Summary Footer Row with XML files</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files#p16130</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files#p16130</guid>
        	        	<description><![CDATA[<p>Hello, thanks that&#39;s better for the XML files :</p>
</p>
<p>$total_tps_jour=0;//total tmps jour sur la p&#233;riode choisi<br />// be sure to put text data in CDATA<br />while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {<br />&#160;&#160;&#160; $i = $i+1;<br />&#160;&#160;&#160; $tab_final = calculTPS($row[&#39;DATE_DEBUT&#39;],$row[&#39;DATE_FIN&#39;]);<br />&#160;&#160;&#160; //pour le calcul du tps jour, nuit et dimanche<br />&#160;&#160;&#160; $piecesDebut = explodeDate( $row[&#39;DATE_DEBUT&#39;]);<br />....<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $row[&#39;CODE_POSTALE_VILLE&#39;]."&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $row[&#39;NUM_MISSION&#39;]."&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;/row&#62;";<br />}<br />$s .= &#39;&#60;userdata name ="total_tps_jour"&#62;&#39;.$total_tps_jour.&#39;&#60;/userdata&#62;&#39;;<br />$s .= "&#60;/rows&#62;";</p>
<p>echo $s;<br />?&#62;</p>
</p>
<p>the XML files is good no error, butnow, i can see the result in the footer of the grid, i have looking this --&#62; <a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank">http://trirand.com/blog/jqgrid/jqgrid.html</a> but i can&#39;t see where i take the information to add it on the footer of the grid.</p>
</p>
<p>thanks</p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 22:52:23 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Summary Footer Row with XML files</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files#p16128</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files#p16128</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please read here</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data&#038;s=userdata#user_data" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....#user_data</a></p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 21:47:58 +0300</pubDate>
        </item>
        <item>
        	<title>mika2008 on Summary Footer Row with XML files</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files#p16127</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/summary-footer-row-with-xml-files#p16127</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>i m using this so good plugins !</p>
</p>
<p>and i have a little problem, but i can&#39;t found how do this :</p>
<p>i have a php files with this XML creation files :</p>
<p>...</p>
<p>while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {<br />&#160;&#160;&#160; $i = $i+1;<br />&#160;&#160;&#160; $tab_final = calculTPS($row[&#39;DATE_DEBUT&#39;],$row[&#39;DATE_FIN&#39;]);<br />&#160;&#160;&#160; //pour le calcul du tps jour, nuit et dimanche<br />&#160;&#160;&#160; $piecesDebut = explodeDate( $row[&#39;DATE_DEBUT&#39;]);<br />&#160;&#160;&#160; $piecesFin = explodeDate($row[&#39;DATE_FIN&#39;]);<br />&#160;&#160;&#160; $nom_prenom = $row[&#39;NOM_EMP&#39;].&#39; &#39;.$row[&#39;PRENOM_EMP&#39;];<br />&#160;&#160;&#160; $s .= "&#60;row id=&#39;". $row[&#39;NUM_MISSION&#39;]."&#39;&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $row[&#39;NOM_CLIENT&#39;]."&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $row[&#39;NOM_MISSION&#39;]."&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $piecesDebut[0]."&#60;/cell&#62;";//date d&#233;but<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $piecesDebut[1]."&#60;/cell&#62;";//horraire d&#233;but<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $piecesFin[0] ."&#60;/cell&#62;";//date fin<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $piecesFin[1]."&#60;/cell&#62;";//horraire fin<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $tab_final[tps_total]."&#60;/cell&#62;"; //tps total<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $tab_final[tps_jour]."&#60;/cell&#62;"; //temps jour<br />&#160;&#160;&#160; //$total_tps_jour = $tab_final[tps_totaljour] + $total_tps_jour;<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $tab_final[tps_nuits]."&#60;/cell&#62;"; //temps nuit<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $tab_final[tps_dimJour]."&#60;/cell&#62;";//temps dimanche jour<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $tab_final[tps_dimNuit]."&#60;/cell&#62;";//temps dimanche nit<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $nom_prenom."&#60;/cell&#62;";// nbr employ&#233; sur missions<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $row[&#39;ADRESSE_MISSION&#39;]."&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $row[&#39;VILLE_MISSION&#39;]."&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $row[&#39;CODE_POSTALE_VILLE&#39;]."&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;". $row[&#39;NUM_MISSION&#39;]."&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;/row&#62;";<br />}</p>
<p>$s .= "&#60;userdata&#62;";<br />&#160; &#160;<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";/<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62; &#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;"; <br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;"; <br />&#160;&#160;&#160; $s .= "&#60;cell&#62;".afficheHeure($total_tps_jour)."&#60;/cell&#62;"; <br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160;&#160; $s .= "&#60;cell&#62;&#60;/cell&#62;";<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; $s .= "&#60;/userdata&#62;";<br />$s .= "&#60;/rows&#62;";<br />echo $s;</p>
</p>
<p>and i have this for jqgrid code :</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; edit : {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; addCaption: "Add Record",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editCaption: "Edit Record",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bSubmit: "Submit",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bCancel: "Cancel",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bClose: "Close",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; saveData: "Data has been changed! Save changes?",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bYes : "Yes",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bNo : "No",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bExit : "Cancel"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;modeles/tab_mission.php&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;CLIENT&#39;,&#39;MISSION&#39;,&#39;DATE_DEBUT&#39;,&#39;HEURE_DEBUT&#39;,&#39;DATE_FIN&#39;,&#39;HEURE_FIN&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;TPS_TOTAL&#39;,&#39;TPS_JOUR&#39;,&#39;TPS_NUIT&#39;,&#39;DIM_JOUR&#39;,&#39;DIM_NUIT&#39;,&#39;Nom EMPLOYE&#39;,&#39;ADR&#39;,&#39;VILLE&#39;,&#39;CODE_POSTALE_VILLE&#39;,&#39;NUM_MISSION&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel :[</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;NOM_CLIENT&#39;,index:&#39;NOM_CLIENT&#39;,width:70, editable: true, edittype:"select", editoptions:{dataUrl:&#39;modules/mission/list_clients.php&#39;}, formoptions:{ label: "Client",rowpos:1,elmprefix:"&#38;nbsp;&#38;nbsp;&#38;nbsp;&#38;nbsp;" } },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;NOM_MISSION&#39;,index:&#39;NOM_MISSION&#39;, width:90,editable:true,editoptions:{size:25}, formoptions:{ rowpos:2, label: "Nom mission", elmprefix:"(*)"},editrules:{required:true}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;DATE_DEBUT&#39;,index:&#39;DATE_DEBUT&#39;, width:80, editable:true, editoptions:{size:12, dataInit:function(el){ $(el).datepicker({dateFormat:&#39;yy-mm-dd&#39;}); }, defaultValue: function(){ var currentTime = new Date(); var month = parseInt(currentTime.getMonth() + 1); month = month &#60;= 9 ? "0"+month : month; var day = currentTime.getDate(); day = day &#60;= 9 ? "0"+day : day; var year = currentTime.getFullYear(); return year+"-"+month + "-"+day; } }, formoptions:{ rowpos:3, elmprefix:"(*)",elmsuffix:" yyyy-mm-dd" }, editrules:{required:true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;HEURE_DEBUT&#39;,index:&#39;HEURE_DEBUT&#39;, width:90,editable:true,editoptions:{size:25}, formoptions:{ rowpos:4, label: "Heure debut format XX:XX", elmprefix:"(*)"},editrules:{required:true}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;DATE_FIN&#39;,index:&#39;DATE_FIN&#39;, width:80, editable:true, editoptions:{size:12, dataInit:function(el){ $(el).datepicker({dateFormat:&#39;yy-mm-dd&#39;}); }, defaultValue: function(){ var currentTime = new Date(); var month = parseInt(currentTime.getMonth() + 1); month = month &#60;= 9 ? "0"+month : month; var day = currentTime.getDate(); day = day &#60;= 9 ? "0"+day : day; var year = currentTime.getFullYear(); return year+"-"+month + "-"+day; } }, formoptions:{ rowpos:5, elmprefix:"(*)",elmsuffix:" yyyy-mm-dd" }, editrules:{required:true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;HEURE_FIN&#39;,index:&#39;HEURE_FIN&#39;, width:90,editable:true,editoptions:{size:25}, formoptions:{ rowpos:6, label: "Heure fin format XX:XX", elmprefix:"(*)"},editrules:{required:true}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;TPS_TOTAL&#39;,index:&#39;TPS_TOTAL&#39;, width:90,editable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;TPS_JOUR&#39;,index:&#39;TPS_JOUR&#39;, width:90,editable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;TPS_NUIT&#39;,index:&#39;TPS_NUIT&#39;, width:90,editable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;TPS_DIM_JOUR&#39;,index:&#39;TPS_DIM_JOUR&#39;, width:90,editable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;TPS_DIM_NUIT&#39;,index:&#39;TPS_DIM_NUIT&#39;, width:90,editable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Nom_EMPLOYE&#39;,index:&#39;Nom_EMPLOYE&#39;,width:170, editable: true, edittype:"select", editoptions:{dataUrl:&#39;modules/mission/list_employes.php&#39;}, formoptions:{ label: "Employe",rowpos:7,elmprefix:"&#38;nbsp;&#38;nbsp;&#38;nbsp;&#38;nbsp;" } },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ADRESSE&#39;,index:&#39;ADRESSE_MISSION&#39;, width:90,editable:true,editoptions:{size:25}, formoptions:{ rowpos:8, label: "Adresse", elmprefix:"(*)"},editrules:{required:true}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;VILLE&#39;,index:&#39;VILLE_MISSION&#39;, width:90,editable:true,editoptions:{size:25}, formoptions:{ rowpos:9, label: "Ville", elmprefix:"(*)"},editrules:{required:true}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;CODE_POSTALE_VILLE&#39;,index:&#39;CODE_POSTALE_VILLE&#39;, width:90,editable:true,editoptions:{size:25}, formoptions:{ rowpos:10, label: "Code postal", elmprefix:"(*)"},editrules:{required:true}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;NUM_MISSION&#39;,index:&#39;NUM_MISSION&#39;, width:0,editable:false},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;NUM_MISSION&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;Les missions&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; footerrow : true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userDataOnFooter : true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl:"modules/mission/ajout_mission.php"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).navGrid(&#39;#pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {view:true}<br />&#160;&#160;&#160; );</p>
<p>and wih this i can see my userdata on the summer footer of my jqgrid table, please where is the problem?</p>
</p>
<p>because on the demonstration have anexemple with json, but my web server don&#39;t have json function, so ican use only XML, please help, thanks.</p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 21:07:27 +0300</pubDate>
        </item>
</channel>
</rss>