Thread: [Rapc-commit] SF.net SVN: rapc: [51] trunk/rapc (Page 2)
Brought to you by:
maher_karim,
sdteffen
From: <mah...@us...> - 2007-02-11 12:32:55
|
Revision: 51 http://svn.sourceforge.net/rapc/?rev=51&view=rev Author: maher_karim Date: 2007-02-11 04:32:41 -0800 (Sun, 11 Feb 2007) Log Message: ----------- 2006-09-11 Maher Abdel karim <mah...@do...> * include/i18n.php: * ar/LC_MESSAGES/rapc.po:Adjust missing translation. * include/dataobject/public_panel.php:Add new validation for boolrow. * contract_panel_report.php:adjust the POST checking. Modified Paths: -------------- trunk/rapc/changelog trunk/rapc/contract_panel_report.php trunk/rapc/include/dataobject/Public_panel.php trunk/rapc/include/i18n.php trunk/rapc/locale/ar/LC_MESSAGES/rapc.po Modified: trunk/rapc/changelog =================================================================== --- trunk/rapc/changelog 2007-02-08 07:14:21 UTC (rev 50) +++ trunk/rapc/changelog 2007-02-11 12:32:41 UTC (rev 51) @@ -1,3 +1,10 @@ +2006-09-11 Maher Abdel karim <mah...@do...> + + * include/i18n.php: + * ar/LC_MESSAGES/rapc.po:Adjust missing translation. + * include/dataobject/public_panel.php:Add new validation for boolrow. + * contract_panel_report.php:adjust the POST checking. + 2007-02-05 Maher Abdel karim <mah...@do...> * doc/user/en/rapc_user_guide.xml:update user guide. Modified: trunk/rapc/contract_panel_report.php =================================================================== --- trunk/rapc/contract_panel_report.php 2007-02-08 07:14:21 UTC (rev 50) +++ trunk/rapc/contract_panel_report.php 2007-02-11 12:32:41 UTC (rev 51) @@ -36,7 +36,7 @@ // Add some elements to the form $Queryform->addElement('header', null, _('Panel Installation')); // fill the array with district information. -$link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], "mpw_ris", "mpw_ris") +$link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], $_SESSION["strOracleUser"], $_SESSION["strOraclePassword"]) or die("Could not connect to Oracle"); $result = dbx_query($link, 'select ddomains_text from roadnameswithdistrict group by ddomains_text'); @@ -60,34 +60,34 @@ $DccssPage->add($Queryform->tohtml()); $strWhere =''; //print_r($_POST['district']); -if ($_POST['district']!=''){ +if ($_POST['district']!='0'){ $strWhere = $strWhere."where contractno<>'' and panel.district='".$Queryform->exportvalue('district')."'"; - + } else { $strWhere = $strWhere."where panel.district<>'' and contractno<>'' "; } if (($_POST['fromdate']['d']!=0)&&($_POST['fromdate']['m']!=0)&&($_POST['fromdate']['Y']!=0)) { $strWhere = $strWhere . " and date >=to_date('".$_POST['fromdate']['Y']."-". $_POST['fromdate']['m']."-".$_POST['fromdate']['d']."','YYYY-MM-dd')"; - - + + } elseif (($_POST['todate']['d']!=0)&&($_POST['todate']['m']!=0)&&($_POST['todate']['Y']!=0)){ $strWhere = $strWhere . " and date <= to_date('".$_POST['todate']['Y']."-". $_POST['todate']['m']."-".$_POST['todate']['d']."','YYYY-MM-dd')"; } - -$strQuery = "select contractno,count(CASE routetype WHEN 1 THEN 1 END) as + +$strQuery = "select contractno,count(CASE routetype WHEN 1 THEN 1 END) as Main, count(CASE routetype WHEN 2 THEN 1 END) as Secondary, count(CASE routetype WHEN 3 THEN 1 END) as Village,companyname,registerno, paneldimension.description as dimension, facecount,count(*) as totalpanels,sum(totalfees) as fees, -sum(contractunitprice) as pedding, ((sum(totalfees)+ sum(contractunitprice))*count(*)) as total +sum(contractunitprice) as pedding, ((sum(totalfees)+ sum(contractunitprice))) as total -from panel left outer join paneldimension on (paneldimension.codedvalue=panel.paneldimension) ".$strWhere." +from panel left outer join paneldimension on (paneldimension.codedvalue=panel.paneldimension) ".$strWhere." group by contractno,companyname,registerno,paneldimension.description,facecount"; //print_r($strQuery); Modified: trunk/rapc/include/dataobject/Public_panel.php =================================================================== --- trunk/rapc/include/dataobject/Public_panel.php 2007-02-08 07:14:21 UTC (rev 50) +++ trunk/rapc/include/dataobject/Public_panel.php 2007-02-11 12:32:41 UTC (rev 51) @@ -4,54 +4,54 @@ */ require_once 'DB/DataObject.php'; -class DataObject_Public_panel extends DB_DataObject +class DataObject_Public_panel extends DB_DataObject { ###START_AUTOCODE /* the code below is auto generated do not remove the above tag */ var $__table = 'public.panel'; // table name - var $id; // int4(4) + var $id; // int4(4) var $district; // int4(4) var $panelcatagory; // int4(4) - var $companyname; // varchar(-1) - var $nationalno; // varchar(-1) - var $mothername; // varchar(-1) - var $address; // varchar(-1) - var $teleno; // varchar(-1) - var $faxno; // varchar(-1) - var $mobileno; // varchar(-1) - var $pobox; // varchar(-1) - var $panelsubject; // varchar(-1) - var $roadname; // varchar(-1) - var $routename; // varchar(-1) - var $carrigewaywidth; // int4(4) - var $shoulderwidth; // int4(4) - var $numberoflanes; // int4(4) - var $medianwidth; // int4(4) - var $date; // date(4) - var $x; // float4(4) - var $y; // float4(4) - var $routetodistance; // int4(4) - var $paneltodistance; // int4(4) - var $routedirection; // int4(4) - var $notesonlocation; // varchar(-1) - var $nearstpanelx; // float4(4) - var $nearstpanely; // float4(4) - var $lightavailable; // int4(4) - var $facecount; // int4(4) - var $routetype; // int4(4) - var $paneltype; // int4(4) - var $paneldimension; // int4(4) - var $panelarea; // int4(4) - var $annualfees; // float4(4) - var $usefees; // float4(4) - var $totalfees; // float4(4) - var $agreedby; // varchar(-1) - var $receiptno; // varchar(-1) - var $receiptdate; // date(4) - var $contractno; // varchar(-1) - var $notes; // varchar(-1) - var $the_geom; // geometry(-1) + var $companyname; // varchar(-1) + var $nationalno; // varchar(-1) + var $mothername; // varchar(-1) + var $address; // varchar(-1) + var $teleno; // varchar(-1) + var $faxno; // varchar(-1) + var $mobileno; // varchar(-1) + var $pobox; // varchar(-1) + var $panelsubject; // varchar(-1) + var $roadname; // varchar(-1) + var $routename; // varchar(-1) + var $carrigewaywidth; // int4(4) + var $shoulderwidth; // int4(4) + var $numberoflanes; // int4(4) + var $medianwidth; // int4(4) + var $date; // date(4) + var $x; // float4(4) + var $y; // float4(4) + var $routetodistance; // int4(4) + var $paneltodistance; // int4(4) + var $routedirection; // int4(4) + var $notesonlocation; // varchar(-1) + var $nearstpanelx; // float4(4) + var $nearstpanely; // float4(4) + var $lightavailable; // int4(4) + var $facecount; // int4(4) + var $routetype; // int4(4) + var $paneltype; // int4(4) + var $paneldimension; // int4(4) + var $panelarea; // int4(4) + var $annualfees; // float4(4) + var $usefees; // float4(4) + var $totalfees; // float4(4) + var $agreedby; // varchar(-1) + var $receiptno; // varchar(-1) + var $receiptdate; // date(4) + var $contractno; // varchar(-1) + var $notes; // varchar(-1) + var $the_geom; // geometry(-1) var $insurancereceiptno; var $ownership; var $insurancereceiptdate; @@ -65,7 +65,7 @@ var $verificationreceiptno; var $verificationreceiptdate; var $verificationamount; - + /* ZE2 compatibility trick*/ function __clone() { return $this;} @@ -76,20 +76,20 @@ ###END_AUTOCODE function table() { //return array_merge(parent::table(), array('x' => 0, 'y' => 0)); - $hierselects = array(); - foreach ($this->conditionalFields as $virtualfield => $cf) { - $hierselects[$virtualfield] = DB_DATAOBJECT_STR; - } + $hierselects = array(); + foreach ($this->conditionalFields as $virtualfield => $cf) { + $hierselects[$virtualfield] = DB_DATAOBJECT_STR; + } foreach ($this->panelFields as $fields => $field){ $hierselects[$fields] = DB_DATAOBJECT_STR; } - return array_merge(parent::table(), $hierselects); + return array_merge(parent::table(), $hierselects); } var $fb_textFields = array('notes','address','notesonlocation','panelsubject'); var $fb_fieldsToRender = array( 'registerno','panelcatagory','companyname','ownership', 'nationalno', 'mothername', 'address', 'teleno', 'faxno', - 'mobileno', 'pobox', 'panelsubject','road_route_district', + 'mobileno', 'pobox', 'panelsubject','road_route_district', 'carrigewaywidth', 'shoulderwidth', 'numberoflanes', 'medianwidth','date','x','y','routetodistance','paneltodistance', 'routedirection','notesonlocation','nearstpanelx','nearstpanely', @@ -98,12 +98,12 @@ 'receiptdate','insurancereceiptno','insurancereceiptdate', 'contractno','notes','idroadiddistrict','permitno','contractunitprice', 'verificationreceiptno','verificationreceiptdate','verificationamount','image','boolrow'); - + var $fb_preDefOrder = array( 'companyname','panelcatagory', 'ownership', 'registerno', 'nationalno', 'mothername', 'address', 'teleno', 'faxno', - 'mobileno', 'pobox', 'panelsubject','road_route_district', 'carrigewaywidth', + 'mobileno', 'pobox', 'panelsubject','road_route_district', 'carrigewaywidth', 'shoulderwidth', 'numberoflanes', 'medianwidth','date','routetodistance','x','y', 'routedirection','notesonlocation','paneltodistance','nearstpanelx','nearstpanely', @@ -112,45 +112,45 @@ 'receiptdate','insurancereceiptno','insurancereceiptdate', 'verificationreceiptno','verificationreceiptdate','verificationamount', 'contractno','contractunitprice','notes','image','idroadiddistrict'); - + var $fb_linkElementTypes = array('facecount' => 'radio'); var $fb_enumFields = array('facecount'); var $fb_enumOptions = array('facecount' => array('1' => '1', '2' => '2')); - -var $fb_selectAddEmpty = array('ownership'); - var $conditionalFields = array( - 'road_route_district' => array( - 'district:public.panel' => array('district'), +var $fb_selectAddEmpty = array('ownership'); + + var $conditionalFields = array( + 'road_route_district' => array( + 'district:public.panel' => array('district'), 'roadname:public.panel' => array('district', 'roadname'), 'routename:public.panel' => array('district', 'roadname','routename') - ) - ); + ) + ); -var $panelFields = array( - 'paneltypedimension' => array( - 'routetype' => array('routetype'), +var $panelFields = array( + 'paneltypedimension' => array( + 'routetype' => array('routetype'), 'paneltype' => array('routetype', 'paneltype'), 'paneldimension' => array('routetype', 'paneltype','paneldimension') - - ) - ); - + + ) + ); + function postGenerateForm(&$form) { /** * \todo Use regular expressions for rules. - */ + */ $form->addRule('x', _('Please Enter the X coordinate for the panel.'), 'required', null, $_SESSION["strHtmlQuickFormValidation"]); - + $form->addRule('receiptno', _('Please Enter the receipt no. for the panel.'), 'required', null, $_SESSION["strHtmlQuickFormValidation"]); $form->addRule('receiptdate', _('Please Enter the receipt date for the panel.'), 'required', null, $_SESSION["strHtmlQuickFormValidation"]); - - - + + + $form->addRule('y', _('Please Enter the Y coordinate for the panel.'), 'required', null, $_SESSION["strHtmlQuickFormValidation"]); $form->addRule('routetodistance', _('Please Enter the distance from the link start.'), @@ -173,10 +173,10 @@ 'numeric', null, $_SESSION["strHtmlQuickFormValidation"]); $form->addRule('paneltypedimension', _('Please select the panel type and dimension.'), 'required', null, $_SESSION["strHtmlQuickFormValidation"]); - + $form->addRule('permitno', _('Please select the permission no.'), 'required', null, $_SESSION["strHtmlQuickFormValidation"]); - + /*$form->addRule('annualfees', _('Please enter the annual fees.'), 'required', null, $_SESSION["strHtmlQuickFormValidation"]); $form->addRule('usefees', _('Please enter the use fees.'), @@ -188,16 +188,16 @@ */ //from Areejs comments - + $form->addRule('image', _('The image type should be JPG.'), 'filename', '/.*\.[jJ][pP][gG]$/','client'); //Letters only - + $form->addRule('companyname', _('The Company name should be only letters.'), 'regex','/^[^1234567890]*$/','client'); $form->addRule('mothername', _('The Mother name should be only letters.'), 'lettersonly',null,'client'); - + $form->addRule('nationalno', _('The National No. should be only numeric.'), 'numeric',null,'client'); $form->addRule('nationalno', _('The entered value should be only numeric.'), @@ -218,7 +218,7 @@ 'numeric',null,'client'); $form->addRule('insurancereceiptno', _('The entered value should be only numeric.'), 'numeric',null,'client'); - + $form->addRule('annualfees', _('Please select the panel dimension, the value should not be zero'), 'numeric',null,'client'); $form->addRule('panelarea', _('Please select the panel dimension, the value should not be zero'), @@ -230,17 +230,17 @@ 'nonzero',null,'client'); $form->addRule('panelarea', _('Please select the panel dimension, the value should not be zero'), 'nonzero',null,'client'); - + $form->addRule('totalfees', _('Please select the panel dimension, the value should not be zero.'), 'nonzero',null,'client'); - - + + //Max length $form->addRule('companyname', _('The Company name should be 125 letters max.'), 'maxlength',125); $form->addRule('mothername', _('The Mother name should be 125 letters max.'), 'maxlength',32); - + $form->addRule('address', _('The Address should be 125 letters max.'), 'maxlength',125,'client'); $form->addRule('telno', _('The Entered telephone value should 10 letters max.'), @@ -257,12 +257,12 @@ 'rangelength',array(0,1),'client'); $form->addRule('numberoflanes', _('The entered number of lanes value should be between 1 and 8.'), 'regex','/^[^90A-z]*$/','client'); - + // $form->addRule('shoulderwidth', _('The entered shoulder width value should be between 1 and 5.'), //'rangelength',array(0,1),'client'); // $form->addRule('shoulderwidth', _('The entered shoulder width value should be between 1 and 5.'), //'regex','/^[^67890A-z]*$/','client'); - + $form->addRule('carrigewaywidth', _('The entered carrigeway width value should be between 2 and 5.'), 'rangelength',array(0,1),'client'); $form->addRule('carrigewaywidth', _('The entered carrigeway width value should be between 2 and 5.'), @@ -285,15 +285,15 @@ 'maxlength', 10); $form->addRule('notes', _('The entered value should be 125 letters max.'),'maxlength', 125); - - + + $form->Applyfilter('__ALL__',trim); $form->setRequiredNote('<span style="font-size:80%; color:#ff0000;" >*</span><span style="font-size:80%;"> '. _('denotes required field').'</span>'); $form->setDefaults(array('panelcatagory'=>3,'facecount'=>1,'boolrow'=>1)); } - + function update($do = false) { if(isset($this->x)&&isset($this->y)) { $this->the_geom = 'POINT('.$this->x.' '.$this->y.')'; @@ -304,7 +304,7 @@ //$this->image='test'; unset ($_SESSION['routetypevalue']); } - + return parent::update($do); } @@ -319,8 +319,8 @@ // $this->image='test'; unset ($_SESSION['routetypevalue']); } - + return parent::insert(); } @@ -330,13 +330,13 @@ isset($_REQUEST['y'])&&is_numeric($_REQUEST['y'])) { $this->x = (float) $_REQUEST['x']; $this->y = (float) $_REQUEST['y']; - + $objDB =& $this->getDatabaseConnection(); } } -function preGenerateForm(&$fb){ - - $this->fb_fieldLabels = array('companyname'=>_('Company Name:'),'panelcatagory' =>_('Panel Catagory:'), +function preGenerateForm(&$fb){ + + $this->fb_fieldLabels = array('companyname'=>_('Company Name:'),'panelcatagory' =>_('Panel Catagory:'), 'ownership'=>_('Ownership:'), 'nationalno'=>_('National No.:'),'mothername'=>_('Mother Name:'), 'address'=>_('Address:'),'teleno'=>_('Telephone:'),'faxno'=>_('Fax No.:'), @@ -363,30 +363,32 @@ 'verificationreceiptno'=>_("Verification Receipt No"), 'verificationreceiptdate'=>_("Verification Receipt Date"), 'verificationamount'=>_("Verification Amount")); - - + + $this->fb_formHeaderText= _('Advertisement Panel Information Data Entry'); - $this->fb_preDefElements = array(); + $this->fb_preDefElements = array(); $this->fb_ruleViolationMessage = _('%s: The value you have entered is not valid.'); $this->fb_requiredRuleMessage = _('%s: This field is required.'); $this->fb_submitText = _('Submit'); - /* the hierselect construct */ + /* the hierselect construct */ $month = date('m'); foreach ($this->panelFields as $fields => $field){ - $desc = (isset($this->fb_fieldLabels[$fields])?$this->fb_fieldLabels[$fields]:$fields); + $desc = (isset($this->fb_fieldLabels[$fields])?$this->fb_fieldLabels[$fields]:$fields); // $attrs = array('onchange' => //"javascript:alert(this.options[this.selectedIndex].value);"); $attrs = array('onchange' => "javascript:getcost(this.options[this.selectedIndex].value);",'onblur' => "javascript:getcost(this.options[this.selectedIndex].value);",'onclick' => "javascript:getcost(this.options[this.selectedIndex].value);"); - + echo '<script type="text/javascript"> <!-- function setitems(val){ - if (val==1){ + if (val==1){ document.forms[2].contractno.disabled=false document.forms[2].contractunitprice.disabled=false + document.forms[2].boolrow.value=2 + } if (val==3){ document.forms[2].companyname.disabled=false @@ -416,36 +418,38 @@ document.forms[2].contractno.disabled=true document.forms[2].contractunitprice.disabled=true } - - + + } function getcost(val){ if ( 2 ) { - + //alert (val); var passed = val; var xpanel; var Startindex = document.forms[2][38].value.search(/ /); - + var Startannual = document.forms[2][38].value.search(/-/); xpanel=document.forms[2][38].value.substr(0,Startindex); var ypanel=document.forms[2][38].value.substr(Startindex+2,Startannual-(Startindex+2)); - //Working to fill the area field. + //Working to fill the area field. //document.forms[2].panelarea.value=document.forms[2][38].value; document.forms[2].panelarea.value=parseInt(ypanel*xpanel); - - + + var StartUse = document.forms[2][38].value.search(/M/); var StartPanel = document.forms[2][38].value.search(/P/); //Check the annual fees document.forms[2].annualfees.value=document.forms[2][38].value.substr(Startannual+1,StartUse-(Startannual+1)); ////Check the Use fees + if (document.forms[2].boolrow.value!=2){ document.forms[2].usefees.value=document.forms[2][38].value.substr(StartUse+1,StartPanel-(StartUse+1)); + } var annualfees = (document.forms[2][38].value.substr(Startannual+1,StartUse-(Startannual+1))); var usefees=document.forms[2][38].value.substr(StartUse+1); //Check face count - + if(document.forms[2].facecount.length == undefined) if(document.forms[2].facecount.checked) return document.forms[2].facecount.value; @@ -456,34 +460,34 @@ var facecount= document.forms[2].facecount[i].value; } } - + //alert (facecount); var startmonth=document.forms[2][22].value; //alert (startmonth); var varannualfees=document.forms[2].annualfees.value; var varusefees=document.forms[2].usefees.value; - - + + var totalfees = (((ypanel*xpanel) * annualfees * facecount)+ parseInt(usefees))*((13-startmonth)/12); document.forms[2].totalfees.value=parseInt(totalfees); - - + + var applicationtype='; print_r("'".$_REQUEST['type']."'"); echo '; - - + + } - + } function checkvalue(val){ - alert ("Hello"); + alert ("Hello"); } - + function getpanelcost(){ - + var panelarea2=parseInt(document.forms[2].panelarea.value); - + var annualfees2=parseInt(document.forms[2].annualfees.value); if(document.forms[2].facecount.length == undefined) if(document.forms[2].facecount.checked) @@ -495,19 +499,19 @@ var facecount= document.forms[2].facecount[i].value; } } - - + + var usefees2=parseInt(document.forms[2].usefees.value); var startmonth=document.forms[2][22].value; if ((document.forms[2].annualfees.value!=0)){ var totalfeesclick = (((panelarea2*annualfees2)*facecount)+usefees2)*((13-startmonth)/12); document.forms[2].totalfees.value=totalfeesclick; - + } - } - - - + } + + + function setface(val){ if (val==2){ document.forms[2][34].disabled=true @@ -515,7 +519,7 @@ document.forms[2][33].checked=true }else{ document.forms[2][34].disabled=false - + } } function getpaneltype(val){ @@ -530,7 +534,7 @@ // alert("test1"); selectedvalue=1; paneldimension="14 X 4-50M1000P1"; - + } //alert (secondaryindex) if((routetypeindex == 3)&&(secondaryindex==-1)) { @@ -541,47 +545,47 @@ } if((routetypeindex> 3)&&(secondaryindex!=-1)) { //Village - + selectedvalue=3; paneldimension="3 X 2-20M100P4"; } - + document.forms[2][36].value=selectedvalue; document.forms[2][36].disabled=true; document.forms[2].routetypevalue.value=selectedvalue; - + //alert (selectedvalue); } //checkvalue(1); _hs_swapOptions(document.forms[2],"paneltypedimension",0); getcost(1); - + } //--> - </script>'; - + </script>'; + //065699071 //Add break after each hierselect. //$hierselectPanel =& HTML_QuickForm::createElement('hierselect', $fb->getFieldName($fields), $desc,$attrs,"<br />"); $hierselectPanel =& HTML_QuickForm::createElement('hierselect', $fb->getFieldName($fields), $desc,$attrs); - - + + $link = dbx_connect(DBX_PGSQL, "localhost", "rapc", $_SESSION['UserName'],$_SESSION['Password']) or die("Could not connect to PostgreSQL"); - + $result = dbx_query($link, "select 0, '[Select One]' union all select codedvalue,description from routetype"); $select1 = array(); - + foreach ($result->data as $row) { $codedvalue=$row[0]; $descriptioin = $row[1]; $select1[$codedvalue]=_($descriptioin); } - + $result = dbx_query($link, "select 0,0, '[Select One]' union all select routetype,paneltype,paneltype.description from typedimensionfees,paneltype where paneltype.codedvalue = typedimensionfees.paneltype"); $select2 = array(); - + foreach ($result->data as $row) { $routetype = $row[0]; $codedvalue=$row[1]; @@ -589,10 +593,10 @@ $select2[$routetype][$codedvalue]=_($descriptioin); } $result = dbx_query($link, "select routetype,paneltype, - paneldimension.description,paneldimension.description,annualfees.description + paneldimension.description,paneldimension.description,annualfees.description ,usefees.description,paneldimension from - typedimensionfees,usefees,paneldimension,annualfees where paneldimension.codedvalue = - typedimensionfees.paneldimension and annualfees.codedvalue=annualfees and + typedimensionfees,usefees,paneldimension,annualfees where paneldimension.codedvalue = + typedimensionfees.paneldimension and annualfees.codedvalue=annualfees and usefees.codedvalue=usefees"); $select3 = array(); $select3[0][0][0]= _('Select One'); @@ -604,17 +608,17 @@ $annual = $row[4]; $usefees = $row[5]; $paneldimension = $row[6]; - - + + $select3[$routetype][$codedvalue][$descriptioin."-".$annual."M". $usefees."P".$paneldimension]=_($descriptioin); } - $hierselectPanel->setOptions(array($select1,$select2,$select3)); - + $hierselectPanel->setOptions(array($select1,$select2,$select3)); + $this->fb_preDefElements[$fields] = $hierselectPanel; - } - - foreach ($this->conditionalFields as $virtualfield => $cf) { + } + + foreach ($this->conditionalFields as $virtualfield => $cf) { $desc = (isset($this->fb_fieldLabels[$virtualfield])?$this->fb_fieldLabels[$virtualfield]:$virtualfield); $attrs = array('onchange' => "javascript:getpaneltype(this.options[this.selectedIndex].value);",'onblur' => @@ -622,37 +626,37 @@ "javascript:getpaneltype(this.options[this.selectedIndex].value);", 'onselect' => "javascript:getpaneltype(this.options[this.selectedIndex].value);"); - + $hierselect =& HTML_QuickForm::createElement('hierselect', $fb->getFieldName($virtualfield), $desc,$attrs); - $link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], "mpw_ris", "mpw_ris") - + $link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], $_SESSION["strOracleUser"], $_SESSION["strOraclePassword"]) + or die("Could not connect to Oracle"); - + $result = dbx_query($link, 'select ddomains_text from roadnameswithdistrict group by ddomains_text'); $select1 = array(); foreach ($result->data as $row) { - + //foreach ($row as $field) { $district=$row[0]; $select1[$district]=_($district); //} - + } - + $result = dbx_query($link, 'select * from roadnameswithdistrict'); $select2 = array(); foreach ($result->data as $row){ $district= $row[3]; $roadname = $row[1]; $select2[$district][$roadname]=$roadname; - + } //select routenameswithdistrict.routename,flatfeatures_cway.cway_width_B, //flatfeatures_cway.cway_nrlane_b,flatfeatures_shoul.SHOUL_WIDTH_B from - //routenameswithdistrict left outer join flatfeatures_cway on - //(routenameswithdistrict.routename=flatfeatures_cway.routename) left outer join - // flatfeatures_shoul on (routenameswithdistrict.routename=flatfeatures_shoul.routename) - + //routenameswithdistrict left outer join flatfeatures_cway on + //(routenameswithdistrict.routename=flatfeatures_cway.routename) left outer join + // flatfeatures_shoul on (routenameswithdistrict.routename=flatfeatures_shoul.routename) + $result = dbx_query($link, 'select * from routenameswithdistrict'); $select3 = array(); foreach ($result->data as $row){ @@ -660,18 +664,18 @@ $routename = $row[0]; $district = $row[3]; $select3[$district][$roadname][$routename]=$routename; - + } - $hierselect->setOptions(array($select1, $select2,$select3)); - //echo "<pre>"; - - //echo "</pre>"; - //$hierselect->setOptions($select); - /* init the hierselect with the values from the database */ - - /* we are done! */ - $this->fb_preDefElements[$virtualfield] = $hierselect; - + $hierselect->setOptions(array($select1, $select2,$select3)); + //echo "<pre>"; + + //echo "</pre>"; + //$hierselect->setOptions($select); + /* init the hierselect with the values from the database */ + + /* we are done! */ + $this->fb_preDefElements[$virtualfield] = $hierselect; + } $arrpanelcatagory=array(1=>_('Contract'),3=>_('Private'),2=>_('Goverment')); $sattrs = array('onchange' => @@ -681,97 +685,97 @@ $this->fb_preDefElements['panelcatagory'] = HTML_QuickForm::createElement( 'select', 'panelcatagory', _('Panel catagory'),$arrpanelcatagory,$sattrs); $arryesno=array(1=>_('Yes'),2=>_('No')); - + $attrs = array('onchange' => "javascript:setface(this.options[this.selectedIndex].value);",'onblur' => "javascript:setface(this.options[this.selectedIndex].value);",'onclick' => "javascript:setface(this.options[this.selectedIndex].value);"); $this->fb_preDefElements['medianwidth'] = HTML_QuickForm::createElement( - 'select', 'medianwidth', _('Median available'),$arryesno,$attrs); + 'select', 'medianwidth', _('Median available'),$arryesno,$attrs); $this->fb_preDefElements['image'] = HTML_QuickForm::createElement( - 'file', 'image', _('Panel image'),null,'client'); - - + 'file', 'image', _('Panel image'),null,'client'); + + if ($_REQUEST['type']=="old"){ $this->fb_preDefElements['panelarea']=HTML_QuickForm::createElement( 'text', 'panelarea', _('Panel Area:')); $this->fb_preDefElements['usefees']=HTML_QuickForm::createElement( - 'text', 'usefees', _('Use fees')); + 'text', 'usefees', _('Use fees')); $this->fb_preDefElements['annualfees']=HTML_QuickForm::createElement( - 'text', 'annualfees', _('Annualfees')); + 'text', 'annualfees', _('Annualfees')); $this->fb_preDefElements['totalfees']=HTML_QuickForm::createElement( 'text', 'totalfees', _('Total fees')); $attrs = array('onchange' => "javascript:getcost(0);",'onblur' => "javascript:getcost(0);",'onclick' => "javascript:getcost(0);"); - + $this->fb_preDefElements['date']=HTML_QuickForm::createElement( 'date', 'date', _('Date'),array('minYear'=>'1975','format'=>'dmY'),$attrs); - + }else{ $this->fb_preDefElements['panelarea']=HTML_QuickForm::createElement( - 'text', 'panelarea', _('Panel Area'),array("readonly=true")); + 'text', 'panelarea', _('Panel Area'),array("readonly=true")); $this->fb_preDefElements['usefees']=HTML_QuickForm::createElement( - 'text', 'usefees', _('Use fees'),array("readonly=true")); + 'text', 'usefees', _('Use fees'),array("readonly=true")); $this->fb_preDefElements['annualfees']=HTML_QuickForm::createElement( - 'text', 'annualfees', _('Annualfees'),array("readonly=true")); + 'text', 'annualfees', _('Annualfees'),array("readonly=true")); $this->fb_preDefElements['totalfees']=HTML_QuickForm::createElement( - 'text', 'totalfees', _('Total fees'),array("readonly=true")); + 'text', 'totalfees', _('Total fees'),array("readonly=true")); $attrs = array('onchange' => "javascript:getcost(0);",'onblur' => "javascript:getcost(0);",'onclick' => "javascript:getcost(0);"); - + $this->fb_preDefElements['date']=HTML_QuickForm::createElement( 'date', 'date', _('Date'),array('minYear'=>'2001','format'=>'dmY'),$attrs); - + } - + $this->fb_preDefElements['registerno'] = HTML_QuickForm::createElement( 'text', 'registerno', _('Registeration No.:'),array('onclick' => " if (this.value!='') { javascript:xajax_myFunction(this.value); } ",'onfocus' => "if (this.value!='') { javascript:xajax_myFunction(this.value); } ",'onblur' => " if (this.value!='') { javascript:xajax_myFunction(this.value); }")); - + $this->fb_preDefElements['totalfees'] = HTML_QuickForm::createElement( 'text', 'totalfees', _('Total fees:'),array('onclick' => "getpanelcost();",'onfocus' => "getpanelcost();",'onblur' => "getpanelcost();")); - + $this->fb_preDefElements['boolrow'] = HTML_QuickForm::createElement( 'select', 'boolrow', _('Right of Way:'),array(1=>_('Yes'),2=>_('No')),array('onclick' => "if (this.options[this.selectedIndex].value==2) { document.forms[2].usefees.value=0; getpanelcost(); } else { getcost(0); } ",'onblur' => "if (this.options[this.selectedIndex].value==2) { document.forms[2].usefees.value=0; getpanelcost(); }else { getcost(0); } ")); - - - - - + + + + + } -function preProcessForm(&$values) -{ - /* put data from hierselect in corresponding database fields */ - foreach ($this->conditionalFields as $virtualfield => $cf) { - $count = 0; - foreach ($cf as $key => $fields) { - list($localfield, $tmp) = explode(':', $key); - $this->$localfield = $values[$virtualfield][$count]; - $count++; - } +function preProcessForm(&$values) +{ + /* put data from hierselect in corresponding database fields */ + foreach ($this->conditionalFields as $virtualfield => $cf) { + $count = 0; + foreach ($cf as $key => $fields) { + list($localfield, $tmp) = explode(':', $key); + $this->$localfield = $values[$virtualfield][$count]; + $count++; + } } - + $this->routetype=$_POST['paneltypedimension'][0]; $this->paneltype=$_POST['paneltypedimension'][1]; - - - -} + + + +} /** * Return an HTML_Table containing all available translations. The table * includes a link to a page for subscriber editing. @@ -806,7 +810,7 @@ $objTable->setCellContents($i, 5, $this->teleno); $objTable->setCellContents($i, 6, $this->faxno); $objTable->setCellContents($i, 7, $this->mobileno); - if ($action=='view'){ + if ($action=='view'){ $ref='<a href="panelpage.php?PHPSESSID='.session_id(). '&action=map&id='. $this->id.'">'. _('[View on Map]').'</a>'; @@ -815,12 +819,12 @@ $objTable->setCellContents($i, 8, '<a href="'.$strPagePath. 'panelpage.php?'. "action=edit&id=".$this->id. - "&backlink=".urlencode($strBacklink)."\">"._("[Edit]")."</a>".$ref); + "&backlink=".urlencode($strBacklink)."\">"._("[Edit]")."</a>".$ref); $i++; } } return $objTable; } - + } Modified: trunk/rapc/include/i18n.php =================================================================== --- trunk/rapc/include/i18n.php 2007-02-08 07:14:21 UTC (rev 50) +++ trunk/rapc/include/i18n.php 2007-02-11 12:32:41 UTC (rev 51) @@ -97,6 +97,7 @@ _("Ministry of Tourisim"); _("Ministry of Public Works"); _("Ajlun"); +_("Advertisement"); ?> Modified: trunk/rapc/locale/ar/LC_MESSAGES/rapc.po =================================================================== --- trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-02-08 07:14:21 UTC (rev 50) +++ trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-02-11 12:32:41 UTC (rev 51) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: mpwh\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2007-02-05 10:34+0200\n" +"PO-Revision-Date: 2007-02-11 11:14+0200\n" "Last-Translator: t <t>\n" "Language-Team: dc <mah...@do...>\n" "MIME-Version: 1.0\n" @@ -1548,6 +1548,10 @@ msgid "Ministry of Public Works" msgstr "وزارة الاشغال العامة و الاسكان" +#: ../../../include/i18n.php:100 +msgid "Advertisement" +msgstr "لوحة اعلانية" + #: ../../../include/dataobject/Public_panel.php:144 msgid "Please Enter the X coordinate for the panel." msgstr "الرجاء ادخال الاحداثية X للوحة" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-02-14 05:27:50
|
Revision: 52 http://svn.sourceforge.net/rapc/?rev=52&view=rev Author: maher_karim Date: 2007-02-13 21:27:46 -0800 (Tue, 13 Feb 2007) Log Message: ----------- 2006-09-13 Maher Abdel karim <mah...@do...> * Authorized_panel_report.php: * contract_panel_report.php: * detailed_panelinstallation_report.php: * illegal_panelinstallation_report.php: * panelinstallation_report.php: * paneltypes_report.php:Adjust reports based on MPWH request. * panelpage.php:display panel id after save. * conf/dccssconfig.php * conf/dccssconfig.php.default:add new variable to handle oracle user name, and password. * script/create_views.sql:Adjust view for reporting. * query.php:add search by panelid, and filter based on username. * doc/user/en/rapc_user_guide.xml:update user guide. Modified Paths: -------------- trunk/rapc/authorized_panel_report.php trunk/rapc/changelog trunk/rapc/conf/dccssconfig.php trunk/rapc/conf/dccssconfig.php.default trunk/rapc/contract_panel_report.php trunk/rapc/doc/user/en/rapc_user_guide.xml trunk/rapc/illegal_panelinstallation_report.php trunk/rapc/include/dataobject/Public_panel.php trunk/rapc/locale/ar/LC_MESSAGES/rapc.po trunk/rapc/panelinstallation_report.php trunk/rapc/panelpage.php trunk/rapc/paneltypes_report.php trunk/rapc/query.php trunk/rapc/script/create_views.sql This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-02-14 05:27:50
|
Revision: 52 http://svn.sourceforge.net/rapc/?rev=52&view=rev Author: maher_karim Date: 2007-02-13 21:27:46 -0800 (Tue, 13 Feb 2007) Log Message: ----------- 2006-09-13 Maher Abdel karim <mah...@do...> * Authorized_panel_report.php: * contract_panel_report.php: * detailed_panelinstallation_report.php: * illegal_panelinstallation_report.php: * panelinstallation_report.php: * paneltypes_report.php:Adjust reports based on MPWH request. * panelpage.php:display panel id after save. * conf/dccssconfig.php * conf/dccssconfig.php.default:add new variable to handle oracle user name, and password. * script/create_views.sql:Adjust view for reporting. * query.php:add search by panelid, and filter based on username. * doc/user/en/rapc_user_guide.xml:update user guide. Modified Paths: -------------- trunk/rapc/authorized_panel_report.php trunk/rapc/changelog trunk/rapc/conf/dccssconfig.php trunk/rapc/conf/dccssconfig.php.default trunk/rapc/contract_panel_report.php trunk/rapc/doc/user/en/rapc_user_guide.xml trunk/rapc/illegal_panelinstallation_report.php trunk/rapc/include/dataobject/Public_panel.php trunk/rapc/locale/ar/LC_MESSAGES/rapc.po trunk/rapc/panelinstallation_report.php trunk/rapc/panelpage.php trunk/rapc/paneltypes_report.php trunk/rapc/query.php trunk/rapc/script/create_views.sql Modified: trunk/rapc/authorized_panel_report.php =================================================================== --- trunk/rapc/authorized_panel_report.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/authorized_panel_report.php 2007-02-14 05:27:46 UTC (rev 52) @@ -26,7 +26,7 @@ // This require for quick form building. require_once("HTML/QuickForm.php"); -$DccssPage = new RolPage(_("Panel installation report")); +$DccssPage = new RolPage(_("Authorized Panel installation report-Governorates")); //print_r($_POST); $Queryform = new HTML_QuickForm('printForm'); @@ -36,7 +36,7 @@ // Add some elements to the form $Queryform->addElement('header', null, _('Panel Installation')); // fill the array with district information. -$link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], "mpw_ris", "mpw_ris") +$link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], $_SESSION['strOracleUser'], $_SESSION["strOraclePassword"]) or die("Could not connect to Oracle"); $result = dbx_query($link, 'select ddomains_text from roadnameswithdistrict group by ddomains_text'); @@ -58,13 +58,17 @@ $Queryform->addElement('submit', null, _('Search The Database')); $DccssPage->add($Queryform->tohtml()); -$strWhere =''; +if (strtolower($_SESSION['UserName'])!='admin'){ +$strWhere =" where panel.username='".$_SESSION['UserName']."' and contractno='' "; +} else { +$strWhere =" where contractno='' "; +} //print_r($_POST['district']); if (($_POST['district']!='') && ($_POST['district']!='0')){ - $strWhere = $strWhere."where panel.district='".$Queryform->exportvalue('district')."'"; + $strWhere = $strWhere." and panel.district='".$Queryform->exportvalue('district')."'"; } else { - $strWhere = $strWhere."where panel.district<>''"; + $strWhere = $strWhere." and panel.district<>''"; } if (($_POST['fromdate']['d']!=0)&&($_POST['fromdate']['m']!=0)&&($_POST['fromdate']['Y']!=0)) { $strWhere = $strWhere . " and date >=to_date('".$_POST['fromdate']['Y']."-". Modified: trunk/rapc/changelog =================================================================== --- trunk/rapc/changelog 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/changelog 2007-02-14 05:27:46 UTC (rev 52) @@ -1,3 +1,19 @@ +2006-09-13 Maher Abdel karim <mah...@do...> + + * Authorized_panel_report.php: + * contract_panel_report.php: + * detailed_panelinstallation_report.php: + * illegal_panelinstallation_report.php: + * panelinstallation_report.php: + * paneltypes_report.php:Adjust reports based on MPWH request. + * panelpage.php:display panel id after save. + * conf/dccssconfig.php + * conf/dccssconfig.php.default:add new variable to handle oracle + user name, and password. + * script/create_views.sql:Adjust view for reporting. + * query.php:add search by panelid, and filter based on username. + * doc/user/en/rapc_user_guide.xml:update user guide. + 2006-09-11 Maher Abdel karim <mah...@do...> * include/i18n.php: Modified: trunk/rapc/conf/dccssconfig.php =================================================================== --- trunk/rapc/conf/dccssconfig.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/conf/dccssconfig.php 2007-02-14 05:27:46 UTC (rev 52) @@ -122,4 +122,9 @@ //Directory to save loaded images $_SESSION['imagedir']="c:/program files/mpwh/rapc/data/plugin/"; +/** +Oracle username and password +**/ +$_SESSION['strOracleUser']='mpw_ris'; +$_SESSION["strOraclePassword"]='mpw_ris'; ?> Modified: trunk/rapc/conf/dccssconfig.php.default =================================================================== --- trunk/rapc/conf/dccssconfig.php.default 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/conf/dccssconfig.php.default 2007-02-14 05:27:46 UTC (rev 52) @@ -120,4 +120,9 @@ $_SESSION['textdomain']='rapc'; //Directory to save loaded images $_SESSION['imagedir']="c:/program files/rapc/data/plugin/"; +/** +Oracle username and password +**/ +$_SESSION['strOracleUser']='mpw_ris'; +$_SESSION["strOraclePassword"]='mpw_ris'; ?> Modified: trunk/rapc/contract_panel_report.php =================================================================== --- trunk/rapc/contract_panel_report.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/contract_panel_report.php 2007-02-14 05:27:46 UTC (rev 52) @@ -58,13 +58,17 @@ $Queryform->addElement('submit', null, _('Search The Database')); $DccssPage->add($Queryform->tohtml()); -$strWhere =''; +if (strtolower($_SESSION['UserName'])!='admin'){ +$strWhere =" where panel.username='".$_SESSION['UserName']."'"; +} else { + $strWhere =" where panel.username<>''"; +} //print_r($_POST['district']); if ($_POST['district']!='0'){ - $strWhere = $strWhere."where contractno<>'' and panel.district='".$Queryform->exportvalue('district')."'"; + $strWhere = $strWhere." and contractno<>'' and panel.district='".$Queryform->exportvalue('district')."'"; } else { - $strWhere = $strWhere."where panel.district<>'' and contractno<>'' "; + $strWhere = $strWhere." and panel.district<>'' and contractno<>'' "; } if (($_POST['fromdate']['d']!=0)&&($_POST['fromdate']['m']!=0)&&($_POST['fromdate']['Y']!=0)) { $strWhere = $strWhere . " and date >=to_date('".$_POST['fromdate']['Y']."-". Modified: trunk/rapc/doc/user/en/rapc_user_guide.xml =================================================================== --- trunk/rapc/doc/user/en/rapc_user_guide.xml 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/doc/user/en/rapc_user_guide.xml 2007-02-14 05:27:46 UTC (rev 52) @@ -43,8 +43,8 @@ - <sect3 id="news_0_0_1"> - <title>Version 0.0.1</title> + <sect3 id="news_0_5_0"> + <title>Version 0.5.0</title> <para><orderedlist> <listitem> <para>Query: This functionality allows the user to query the panel @@ -535,7 +535,7 @@ <listitem> <para>The RAPC version. The version number can be found in the top line of the application, along with the main menu link. - Example: RAPC 0.0.1</para> + Example: RAPC 0.5.0</para> </listitem> <listitem> Modified: trunk/rapc/illegal_panelinstallation_report.php =================================================================== --- trunk/rapc/illegal_panelinstallation_report.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/illegal_panelinstallation_report.php 2007-02-14 05:27:46 UTC (rev 52) @@ -36,7 +36,7 @@ // Add some elements to the form $Queryform->addElement('header', null, _('Panel Installation')); // fill the array with district information. -$link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], "mpw_ris", "mpw_ris") +$link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], $_SESSION['strOracleUser'], $_SESSION["strOraclePassword"]) or die("Could not connect to Oracle"); $result = dbx_query($link, 'select ddomains_text from roadnameswithdistrict group by ddomains_text'); @@ -58,14 +58,18 @@ $Queryform->addElement('submit', null, _('Search The Database')); $DccssPage->add($Queryform->tohtml()); -$strWhere =''; +if (strtolower($_SESSION['UserName'])!='admin'){ +$strWhere =" where panelinformation.username='".$_SESSION['UserName']."'"; +} else { +$strWhere =" where panelinformation.username<>''"; +} //print_r($_POST['district']); if ($_POST['district']!=''){ - $strWhere = $strWhere."where panelinformation.district='". + $strWhere = $strWhere." and panelinformation.district='". $Queryform->exportvalue('district')."' and panelinformation.notes like '%مخالف%' "; } else { - $strWhere = $strWhere."where panelinformation.district<>'' and panelinformation.notes like '%مخالف%' "; + $strWhere = $strWhere." and panelinformation.district<>'' and panelinformation.notes like '%مخالف%' "; } if (($_POST['fromdate']['d']!=0)&&($_POST['fromdate']['m']!=0)&&($_POST['fromdate']['Y']!=0)) { $strWhere = $strWhere . " and date >=to_date('".$_POST['fromdate']['Y']."-". Modified: trunk/rapc/include/dataobject/Public_panel.php =================================================================== --- trunk/rapc/include/dataobject/Public_panel.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/include/dataobject/Public_panel.php 2007-02-14 05:27:46 UTC (rev 52) @@ -250,7 +250,7 @@ $form->addRule('mobileno', _('The Entered Mobile no should 10 letters max.'), 'maxlength',10,'client'); $form->addRule('pobox', _('The Entered pobox value should 6 letters max.'), - 'maxlength',6,'client'); + 'maxlength',32,'client'); $form->addRule('panelsubject', _('The Entered Panel subject value should 32 letters max.'), 'maxlength',125,'client'); $form->addRule('numberoflanes', _('The entered number of lanesvalue should be between 1 and 8.'), Modified: trunk/rapc/locale/ar/LC_MESSAGES/rapc.po =================================================================== --- trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-02-14 05:27:46 UTC (rev 52) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: mpwh\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2007-02-11 11:14+0200\n" +"PO-Revision-Date: 2007-02-13 08:06+0200\n" "Last-Translator: t <t>\n" "Language-Team: dc <mah...@do...>\n" "MIME-Version: 1.0\n" @@ -119,9 +119,8 @@ msgstr "لم تتم المعالجة" #: ../../../authorized_panel_report.php:29 -#: ../../../panelinstallation_report.php:29 -msgid "Panel installation report" -msgstr "تقرير اللوحات الاعلانية المرخصة" +msgid "Authorized Panel installation report-Governorates" +msgstr "اللوحات الاعلانية المرخصة-المحافظات" #: ../../../authorized_panel_report.php:37 #: ../../../contract_panel_report.php:37 @@ -185,7 +184,7 @@ #: ../../../authorized_panel_report.php:58 #: ../../../contract_panel_report.php:58 -#: ../../../detailed_panelinstallation_report.php:58 +#: ../../../detailed_panelinstallation_report.php:61 #: ../../../illegal_panelinstallation_report.php:58 #: ../../../panelinstallation_report.php:58 #: ../../../query.php:110 @@ -203,14 +202,14 @@ msgstr "مديرية السلامة المرورية - قسم التعديات" #: ../../../authorized_panel_report.php:96 -#: ../../../detailed_panelinstallation_report.php:90 +#: ../../../detailed_panelinstallation_report.php:99 #: ../../../panelinstallation_report.php:115 msgid "Authorized panel list from:" msgstr "قائمة اللوحات المرخصة من:" #: ../../../authorized_panel_report.php:98 #: ../../../contract_panel_report.php:101 -#: ../../../detailed_panelinstallation_report.php:92 +#: ../../../detailed_panelinstallation_report.php:101 #: ../../../illegal_panelinstallation_report.php:119 #: ../../../panelinstallation_report.php:117 msgid " To:" @@ -218,7 +217,7 @@ #: ../../../authorized_panel_report.php:99 #: ../../../contract_panel_report.php:102 -#: ../../../detailed_panelinstallation_report.php:93 +#: ../../../detailed_panelinstallation_report.php:102 #: ../../../illegal_panelinstallation_report.php:120 #: ../../../panelinstallation_report.php:118 msgid "District:" @@ -244,6 +243,15 @@ msgid "Detailed Panel installation report" msgstr "تقرير اللوحات الاعلانية المركبة المفصل" +#: ../../../detailed_panelinstallation_report.php:58 +#: ../../../query.php:56 +msgid "Company Name" +msgstr "اسم الجهة الطالبة" + +#: ../../../detailed_panelinstallation_report.php:59 +msgid "Receipt number" +msgstr "رقم الوصل المالي" + #: ../../../illegal_panelinstallation_report.php:29 msgid "Illegal Panel installation report" msgstr "تقرير اللوحات الاعلانية المخالفة" @@ -419,6 +427,7 @@ #: ../../../mainpage.php:148 #: ../../../panelpage.php:150 +#: ../../../panelpage.php:231 msgid "Panel #" msgstr "رقم اللوحة" @@ -586,6 +595,10 @@ msgid "Identify" msgstr "تعريف" +#: ../../../panelinstallation_report.php:29 +msgid "Panel installation report" +msgstr "تقرير اللوحات الاعلانية المرخصة" + #: ../../../panelinstallation_report.php:110 msgid "Unkown" msgstr "غير محدد" @@ -672,9 +685,9 @@ msgid "Select Date:" msgstr "اختر تاريخ:" -#: ../../../query.php:56 -msgid "Company Name" -msgstr "اسم الجهة الطالبة" +#: ../../../query.php:57 +msgid "Panel ID" +msgstr "رقم اللوحة" #: ../../../query.php:116 #: ../../../admin/setup.php:61 @@ -682,7 +695,7 @@ msgid "denotes required field" msgstr "ادخل معلومات الحقول المطلوبة" -#: ../../../query.php:185 +#: ../../../query.php:192 msgid "Back to Panel" msgstr "العودة الى اللوحة" @@ -1067,7 +1080,7 @@ #: ../../../admin/user_management.php:306 #: ../../../include/header.php:430 #: ../../../include/i18n.php:24 -#: ../../../include/dataobject/Public_panel.php:796 +#: ../../../include/dataobject/Public_panel.php:800 msgid "Action" msgstr "الاجراء" @@ -1268,8 +1281,8 @@ #: ../../../include/i18n.php:25 #: ../../../include/i18n.php:83 -#: ../../../include/dataobject/Public_panel.php:683 -#: ../../../include/dataobject/Public_panel.php:745 +#: ../../../include/dataobject/Public_panel.php:687 +#: ../../../include/dataobject/Public_panel.php:749 msgid "No" msgstr "لا" @@ -1278,8 +1291,8 @@ msgstr "غير معروف" #: ../../../include/i18n.php:27 -#: ../../../include/dataobject/Public_panel.php:683 -#: ../../../include/dataobject/Public_panel.php:745 +#: ../../../include/dataobject/Public_panel.php:687 +#: ../../../include/dataobject/Public_panel.php:749 msgid "Yes" msgstr "نعم" @@ -1314,7 +1327,7 @@ #: ../../../include/i18n.php:35 msgid "Totalfees" -msgstr "مجموع الرسوم" +msgstr "مجموع المبالغ المحصلة" #: ../../../include/i18n.php:36 msgid "Usefees" @@ -1783,8 +1796,8 @@ msgstr "يوجد جزيرة:" #: ../../../include/dataobject/Public_panel.php:347 -#: ../../../include/dataobject/Public_panel.php:710 -#: ../../../include/dataobject/Public_panel.php:728 +#: ../../../include/dataobject/Public_panel.php:714 +#: ../../../include/dataobject/Public_panel.php:732 msgid "Date" msgstr "التاريخ:" @@ -1825,7 +1838,7 @@ msgstr "نوع اللوحة و ابعادها:" #: ../../../include/dataobject/Public_panel.php:354 -#: ../../../include/dataobject/Public_panel.php:715 +#: ../../../include/dataobject/Public_panel.php:719 msgid "Panel Area" msgstr "مساحة اللوحة:" @@ -1874,7 +1887,7 @@ msgstr "رقم الترخيص:" #: ../../../include/dataobject/Public_panel.php:361 -#: ../../../include/dataobject/Public_panel.php:733 +#: ../../../include/dataobject/Public_panel.php:737 msgid "Registeration No.:" msgstr "رقم التسجيل:" @@ -1912,98 +1925,98 @@ msgid "%s: This field is required." msgstr "%s: يجب ادخال هذا الحقل." -#: ../../../include/dataobject/Public_panel.php:598 +#: ../../../include/dataobject/Public_panel.php:602 msgid "Select One" msgstr "اختر واحد" -#: ../../../include/dataobject/Public_panel.php:676 +#: ../../../include/dataobject/Public_panel.php:680 msgid "Contract" msgstr "عطاء" -#: ../../../include/dataobject/Public_panel.php:676 +#: ../../../include/dataobject/Public_panel.php:680 msgid "Private" msgstr "قطاع خاص" -#: ../../../include/dataobject/Public_panel.php:676 +#: ../../../include/dataobject/Public_panel.php:680 msgid "Goverment" msgstr "حكومي" -#: ../../../include/dataobject/Public_panel.php:682 +#: ../../../include/dataobject/Public_panel.php:686 msgid "Panel catagory" msgstr "فئة اللوحة" -#: ../../../include/dataobject/Public_panel.php:690 +#: ../../../include/dataobject/Public_panel.php:694 msgid "Median available" msgstr "يوجد جزيرة" -#: ../../../include/dataobject/Public_panel.php:692 +#: ../../../include/dataobject/Public_panel.php:696 msgid "Panel image" msgstr "صورة اللوحة:" -#: ../../../include/dataobject/Public_panel.php:697 +#: ../../../include/dataobject/Public_panel.php:701 msgid "Panel Area:" msgstr "مساحة اللوحة:" -#: ../../../include/dataobject/Public_panel.php:699 -#: ../../../include/dataobject/Public_panel.php:717 +#: ../../../include/dataobject/Public_panel.php:703 +#: ../../../include/dataobject/Public_panel.php:721 msgid "Use fees" msgstr "بدل استغلال حرم الطريق" -#: ../../../include/dataobject/Public_panel.php:701 -#: ../../../include/dataobject/Public_panel.php:719 +#: ../../../include/dataobject/Public_panel.php:705 +#: ../../../include/dataobject/Public_panel.php:723 msgid "Annualfees" msgstr "الرسوم السنوية:" -#: ../../../include/dataobject/Public_panel.php:703 -#: ../../../include/dataobject/Public_panel.php:721 +#: ../../../include/dataobject/Public_panel.php:707 +#: ../../../include/dataobject/Public_panel.php:725 msgid "Total fees" msgstr "المجموع" -#: ../../../include/dataobject/Public_panel.php:739 +#: ../../../include/dataobject/Public_panel.php:743 msgid "Total fees:" msgstr "مجموع الرسوم:" -#: ../../../include/dataobject/Public_panel.php:745 +#: ../../../include/dataobject/Public_panel.php:749 msgid "Right of Way:" msgstr "داخل الحرم:" -#: ../../../include/dataobject/Public_panel.php:788 +#: ../../../include/dataobject/Public_panel.php:792 msgid "ID" msgstr "رقم التعريف" -#: ../../../include/dataobject/Public_panel.php:789 +#: ../../../include/dataobject/Public_panel.php:793 msgid "Company name" msgstr "اسم الجهة الطالبة" -#: ../../../include/dataobject/Public_panel.php:790 +#: ../../../include/dataobject/Public_panel.php:794 msgid "National number" msgstr "الرقم الوطني:" -#: ../../../include/dataobject/Public_panel.php:791 +#: ../../../include/dataobject/Public_panel.php:795 msgid "Mother name" msgstr "اسم الام:" -#: ../../../include/dataobject/Public_panel.php:792 +#: ../../../include/dataobject/Public_panel.php:796 msgid "Address" msgstr "العنوان:" -#: ../../../include/dataobject/Public_panel.php:793 +#: ../../../include/dataobject/Public_panel.php:797 msgid "Telephone no." msgstr "رقم الهاتف:" -#: ../../../include/dataobject/Public_panel.php:794 +#: ../../../include/dataobject/Public_panel.php:798 msgid "Fax no." msgstr "رقم الفاكس:" -#: ../../../include/dataobject/Public_panel.php:795 +#: ../../../include/dataobject/Public_panel.php:799 msgid "Mobile no." msgstr "رقم المحمول:" -#: ../../../include/dataobject/Public_panel.php:812 +#: ../../../include/dataobject/Public_panel.php:816 msgid "[View on Map]" msgstr "[اظهار على الخريطة]" -#: ../../../include/dataobject/Public_panel.php:818 +#: ../../../include/dataobject/Public_panel.php:822 msgid "[Edit]" msgstr "[تحرير]" Modified: trunk/rapc/panelinstallation_report.php =================================================================== --- trunk/rapc/panelinstallation_report.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/panelinstallation_report.php 2007-02-14 05:27:46 UTC (rev 52) @@ -36,7 +36,7 @@ // Add some elements to the form $Queryform->addElement('header', null, _('Panel Installation')); // fill the array with district information. -$link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], "mpw_ris", "mpw_ris") +$link = dbx_connect(DBX_OCI8, "",$_SESSION["strOracleServer"], $_SESSION['strOracleUser'], $_SESSION["strOraclePassword"]) or die("Could not connect to Oracle"); $result = dbx_query($link, 'select ddomains_text from roadnameswithdistrict group by ddomains_text'); @@ -58,13 +58,17 @@ $Queryform->addElement('submit', null, _('Search The Database')); $DccssPage->add($Queryform->tohtml()); -$strWhere =''; +if (strtolower($_SESSION['UserName'])!='admin'){ +$strWhere =" where panelinformation.username='".$_SESSION['UserName']."'"; +} else { + $strWhere =" where panelinformation.username<>''"; +} //print_r($_POST['district']); if ($_POST['district']!=''){ - $strWhere = $strWhere."where panelinformation.district='".$Queryform->exportvalue('district')."'"; + $strWhere = $strWhere." and panelinformation.district='".$Queryform->exportvalue('district')."'"; } else { - $strWhere = $strWhere."where panelinformation.district<>''"; + $strWhere = $strWhere." and panelinformation.district<>''"; } if (($_POST['fromdate']['d']!=0)&&($_POST['fromdate']['m']!=0)&&($_POST['fromdate']['Y']!=0)) { $strWhere = $strWhere . " and date >=to_date('".$_POST['fromdate']['Y']."-". Modified: trunk/rapc/panelpage.php =================================================================== --- trunk/rapc/panelpage.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/panelpage.php 2007-02-14 05:27:46 UTC (rev 52) @@ -228,12 +228,12 @@ $dccssPage->addMessage(_('Image is loaded')); $objPanel->image=''.$_SESSION['loadedimage'].''; - + $dccssPage->add(_('Panel #').'<b> '.$objPanel->id .'</b><br>'); $objPanel->update(); $dccssPage->addMessage(_('Record(s) successfully saved.')); - + $dccssPage->add('<a href="Panelpage.php?PHPSESSID='.session_id(). '&action=map&id='.$objPanel->id.'">'. _('View on Map').'</a>'); Modified: trunk/rapc/paneltypes_report.php =================================================================== --- trunk/rapc/paneltypes_report.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/paneltypes_report.php 2007-02-14 05:27:46 UTC (rev 52) @@ -39,14 +39,17 @@ $form->addElement('submit', 'btnSubmit', 'Submit'); $DccssPage->add($form->toHTML()); - -$strWhere=''; +if (strtolower($_SESSION['UserName'])!='admin'){ +$strWhere =" where panel.username='".$_SESSION['UserName']."'"; +} else { + $strWhere =" where panel.username<>''"; +} if (($form->exportValue('FromDate')!='')){ $strFromDate = $_POST['FromDate']['Y'].'/'.$_POST['FromDate']['m'].'/'. $_POST['FromDate']['d']." 01:01"; $strToDate = $_POST['ToDate']['Y'].'/'.$_POST['ToDate']['m'].'/'. $_POST['ToDate']['d']." 23:59"; - $strWhere = " where panel.date >='".$strFromDate. + $strWhere = $strWhere." and panel.date >='".$strFromDate. "' and panel.date <= '".$strToDate."'"; $DccssPage->add(_("Panel installation on route for the period from". Modified: trunk/rapc/query.php =================================================================== --- trunk/rapc/query.php 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/query.php 2007-02-14 05:27:46 UTC (rev 52) @@ -54,9 +54,9 @@ $Queryform->addElement('date', 'regdate', _('Select Date:'),array('maxYear'=>2020, 'addEmptyOption'=>TRUE,'emptyOptionText'=>_('Select date'),'format'=>'dmY')); $Queryform->addElement('text','companyname',_('Company Name')); +$Queryform->addElement('text','panelid',_('Panel ID')); - $conditionalFields = array( 'road_route_district' => array( 'district:public.panel' => array('district'), @@ -68,7 +68,7 @@ foreach ($conditionalFields as $virtualfield => $cf) { $desc = $virtualfield; -$link = dbx_connect(DBX_OCI8, "", "", "mpw_ris", "mpw_ris") +$link = dbx_connect(DBX_OCI8, "", "", $_SESSION['strOracleUser'], $_SESSION["strOraclePassword"]) or die("Could not connect to Oracle"); $result = dbx_query($link, 'select ddomains_text from roadnameswithdistrict group by ddomains_text'); @@ -116,22 +116,26 @@ _('denotes required field').'</span>'); $RolPage->add($Queryform->toHTML()); $boolWhere = false; -$strWhere=''; +if (strtolower($_SESSION['UserName'])!='admin'){ +$strWhere=" where panel.username='".$_SESSION['UserName']."'"; +} else { + $strWhere=" where panel.username<>''"; +} if($Queryform->validate()) { // print_r($_POST); - if ($_POST['district']!=0){ + if ($_POST['district']!='0'){ - $strWhere = " where district='".$_POST['district']."'"; + $strWhere = $strWhere." and district='".$_POST['district']."'"; $boolWhere = true; } - if ($_POST['Queryroute'][1]!=0){ + if ($_POST['Queryroute'][1]!='0'){ if ($boolWhere){ $strWhere = $strWhere." and district='".$_POST['Queryroute'][0]."' and roadname='".$_POST['Queryroute'][1]. "' and routename='".$_POST['Queryroute'][2]."'"; } else { - $strWhere = $strWhere." where district='".$_POST['Queryroute'][0]."' and roadname='".$_POST['Queryroute'][1]. + $strWhere = $strWhere." and district='".$_POST['Queryroute'][0]."' and roadname='".$_POST['Queryroute'][1]. "' and routename='".$_POST['Queryroute'][2]."'"; } $boolWhere=true; @@ -145,7 +149,7 @@ $_POST['regdate']['m']." and date_part('year',date)=". $_POST['regdate']['Y']; } else{ - $strWhere = $strWhere." where date_part('day',date)=". + $strWhere = $strWhere." and date_part('day',date)=". $_POST['regdate']['d']." and date_part('month',date)=". $_POST['regdate']['m']." and date_part('year',date)=". $_POST['regdate']['Y']; @@ -156,15 +160,22 @@ if ($boolWhere){ $strWhere = $strWhere." and companyname like '%".$Queryform->exportvalue('companyname')."%'"; }else{ - $strWhere = $strWhere." where companyname like '%".$Queryform->exportvalue('companyname')."%'"; + $strWhere = $strWhere." and companyname like '%".$Queryform->exportvalue('companyname')."%'"; } } - +if ($Queryform->exportvalue('panelid')!=''){ + + if ($boolWhere){ + $strWhere = $strWhere." and panel.id=".$Queryform->exportvalue('panelid').""; + }else{ + $strWhere = $strWhere." and panel.id=".$Queryform->exportvalue('panelid').""; + } + } $strQuery="select id,companyname,nationalno , mothername , address ,teleno , faxno ,mobileno ,pobox , panelsubject , roadname ,routename ,carrigewaywidth , shoulderwidth ,numberoflanes ,medianwidth ,date ,x , y ,routetodistance , paneltodistance ,routedirection , notesonlocation from panel ".$strWhere; - //print_r($strQuery); + // print_r($strQuery); $objTable = DB_DataObject::factory('public.panel'); if(PEAR::isError($objTable)or(NULL == $objTable)) { die(_($objTable->getMessage())); Modified: trunk/rapc/script/create_views.sql =================================================================== --- trunk/rapc/script/create_views.sql 2007-02-11 12:32:41 UTC (rev 51) +++ trunk/rapc/script/create_views.sql 2007-02-14 05:27:46 UTC (rev 52) @@ -32,7 +32,8 @@ panel.totalfees,panel.usefees, panel.receiptno,panel.receiptdate,panel.insurancereceiptno, panel.insurancereceiptdate,panel.notes,panel.verificationreceiptno, - panel.verificationreceiptdate,panel.x,panel.y,panel.annualfees,panel.registerno + panel.verificationreceiptdate,panel.x,panel.y,panel.annualfees,panel.registerno, + panel.username from panel left outer join typedimensionfees on (panel.routetype=typedimensionfees.routetype and panel.paneldimension=typedimensionfees.paneldimension) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-03-18 11:56:05
|
Revision: 58 http://svn.sourceforge.net/rapc/?rev=58&view=rev Author: maher_karim Date: 2007-03-18 02:27:53 -0700 (Sun, 18 Mar 2007) Log Message: ----------- 2007-03-18 Maher Abdel karim <mah...@do...> * script/create_view.sql:add panel.id to the view. * local/ar/LC_MESSAGES/rapc.po:update transaltions. * panelinstallation_report.php:adjust report based on MPWH request. * include/i18n.php:adjust translation. * authorized_panel_report.php:adjust report based on MPWH request. * contract_panel_report.php: * detailed_panelinstallation_report.php: * illegal_panelinstallation_report.php: * public_panel.php: * reports.php:adjust based on MPWH requests. Modified Paths: -------------- trunk/rapc/authorized_panel_report.php trunk/rapc/changelog trunk/rapc/illegal_panelinstallation_report.php trunk/rapc/include/dataobject/Public_panel.php trunk/rapc/include/i18n.php trunk/rapc/locale/ar/LC_MESSAGES/rapc.po trunk/rapc/panelinstallation_report.php trunk/rapc/reports.php trunk/rapc/script/create_views.sql Modified: trunk/rapc/authorized_panel_report.php =================================================================== --- trunk/rapc/authorized_panel_report.php 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/authorized_panel_report.php 2007-03-18 09:27:53 UTC (rev 58) @@ -26,7 +26,7 @@ // This require for quick form building. require_once("HTML/QuickForm.php"); -$DccssPage = new RolPage(_("Authorized Panel installation report-Governorates")); +$DccssPage = new RolPage(_("Authorized Panel installation report- ALL Governorates")); //print_r($_POST); $Queryform = new HTML_QuickForm('printForm'); Modified: trunk/rapc/changelog =================================================================== --- trunk/rapc/changelog 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/changelog 2007-03-18 09:27:53 UTC (rev 58) @@ -1,3 +1,16 @@ +2007-03-18 Maher Abdel karim <mah...@do...> + + * script/create_view.sql:add panel.id to the view. + * local/ar/LC_MESSAGES/rapc.po:update transaltions. + * panelinstallation_report.php:adjust report based on MPWH request. + * include/i18n.php:adjust translation. + * authorized_panel_report.php:adjust report based on MPWH request. + * contract_panel_report.php: + * detailed_panelinstallation_report.php: + * illegal_panelinstallation_report.php: + * public_panel.php: + * reports.php:adjust based on MPWH requests. + 2006-09-13 Maher Abdel karim <mah...@do...> * Authorized_panel_report.php: Modified: trunk/rapc/illegal_panelinstallation_report.php =================================================================== --- trunk/rapc/illegal_panelinstallation_report.php 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/illegal_panelinstallation_report.php 2007-03-18 09:27:53 UTC (rev 58) @@ -109,10 +109,10 @@ routetype,dimension,facecount,insurance,usefees,receiptno,receiptdate, insurancereceiptdate,boolrow"; */ -$strQuery="select companyname,panelsubject,routetype,routename,boolrow,dimension, +$strQuery="select id,companyname,panelsubject,routetype,routename,boolrow,dimension, sum(totalfees),facecount,count(*),usefees,verificationreceiptno, verificationreceiptdate from panelinformation ".$strWhere." group by companyname,routename,panelsubject, -routetype,dimension,facecount,insurance,usefees,verificationreceiptno,verificationreceiptdate,boolrow"; +routetype,dimension,facecount,insurance,usefees,verificationreceiptno,verificationreceiptdate,boolrow,id"; //print_r($strQuery); $objTable = new DbTable($DccssPage->postgis->db, $strQuery); Modified: trunk/rapc/include/dataobject/Public_panel.php =================================================================== --- trunk/rapc/include/dataobject/Public_panel.php 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/include/dataobject/Public_panel.php 2007-03-18 09:27:53 UTC (rev 58) @@ -391,6 +391,7 @@ } if (val==3){ + document.forms[2].contractno.value=""; document.forms[2].companyname.disabled=false document.forms[2].registerno.disabled=false document.forms[2].ownership.disabled=true @@ -405,6 +406,7 @@ document.forms[2].contractunitprice.disabled=true } if (val==2){ + document.forms[2].contractno.value=""; document.forms[2].companyname.disabled=true document.forms[2].registerno.disabled=true document.forms[2].ownership.disabled=false Modified: trunk/rapc/include/i18n.php =================================================================== --- trunk/rapc/include/i18n.php 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/include/i18n.php 2007-03-18 09:27:53 UTC (rev 58) @@ -98,6 +98,9 @@ _("Ministry of Public Works"); _("Ajlun"); _("Advertisement"); +_("Id"); +_("x"); +_("y"); ?> Modified: trunk/rapc/locale/ar/LC_MESSAGES/rapc.po =================================================================== --- trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-03-18 09:27:53 UTC (rev 58) @@ -2,7 +2,7 @@ msgstr "" "Project-Id-Version: mpwh\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2007-02-13 08:06+0200\n" +"PO-Revision-Date: 2007-03-18 11:22+0200\n" "Last-Translator: t <t>\n" "Language-Team: dc <mah...@do...>\n" "MIME-Version: 1.0\n" @@ -119,8 +119,8 @@ msgstr "لم تتم المعالجة" #: ../../../authorized_panel_report.php:29 -msgid "Authorized Panel installation report-Governorates" -msgstr "اللوحات الاعلانية المرخصة-المحافظات" +msgid "Authorized Panel installation report- ALL Governorates" +msgstr "اللوحات الاعلانية المرخصة-لكافة المحافظات" #: ../../../authorized_panel_report.php:37 #: ../../../contract_panel_report.php:37 @@ -191,43 +191,45 @@ msgid "Search The Database" msgstr "البحث في قاعدة البيانات" -#: ../../../authorized_panel_report.php:94 -#: ../../../contract_panel_report.php:98 +#: ../../../authorized_panel_report.php:98 +#: ../../../contract_panel_report.php:102 +#: ../../../detailed_panelinstallation_report.php:109 #: ../../../print.php:62 msgid "Ministry of Public Works and Housing" msgstr "وزارة الاشغال العامة و الاسكان" -#: ../../../authorized_panel_report.php:95 +#: ../../../authorized_panel_report.php:99 msgid "Traffic Safty Directorate-Violation Department" msgstr "مديرية السلامة المرورية - قسم التعديات" -#: ../../../authorized_panel_report.php:96 -#: ../../../detailed_panelinstallation_report.php:99 -#: ../../../panelinstallation_report.php:115 +#: ../../../authorized_panel_report.php:100 +#: ../../../detailed_panelinstallation_report.php:132 +#: ../../../panelinstallation_report.php:120 msgid "Authorized panel list from:" msgstr "قائمة اللوحات المرخصة من:" -#: ../../../authorized_panel_report.php:98 -#: ../../../contract_panel_report.php:101 -#: ../../../detailed_panelinstallation_report.php:101 -#: ../../../illegal_panelinstallation_report.php:119 -#: ../../../panelinstallation_report.php:117 +#: ../../../authorized_panel_report.php:102 +#: ../../../contract_panel_report.php:105 +#: ../../../detailed_panelinstallation_report.php:134 +#: ../../../illegal_panelinstallation_report.php:123 +#: ../../../panelinstallation_report.php:122 msgid " To:" msgstr "الى:" -#: ../../../authorized_panel_report.php:99 -#: ../../../contract_panel_report.php:102 -#: ../../../detailed_panelinstallation_report.php:102 -#: ../../../illegal_panelinstallation_report.php:120 -#: ../../../panelinstallation_report.php:118 +#: ../../../authorized_panel_report.php:103 +#: ../../../contract_panel_report.php:106 +#: ../../../detailed_panelinstallation_report.php:139 +#: ../../../detailed_panelinstallation_report.php:142 +#: ../../../illegal_panelinstallation_report.php:124 +#: ../../../panelinstallation_report.php:123 msgid "District:" msgstr "المحافظة:" -#: ../../../authorized_panel_report.php:270 +#: ../../../authorized_panel_report.php:274 msgid "Advertisement Section" msgstr "شعبة الاعلانات" -#: ../../../authorized_panel_report.php:271 +#: ../../../authorized_panel_report.php:275 msgid "Head of Section" msgstr "رئيس القسم" @@ -235,7 +237,7 @@ msgid "Contract Panel installation report" msgstr "تقرير تركيب اللوحات - العطاءات" -#: ../../../contract_panel_report.php:99 +#: ../../../contract_panel_report.php:103 msgid "Authorized panel list by contract for the period from:" msgstr "قائمة اللوحات المرخصه للعطاءات للفترة من:" @@ -252,11 +254,99 @@ msgid "Receipt number" msgstr "رقم الوصل المالي" +#: ../../../detailed_panelinstallation_report.php:110 +#: ../../../panelinstallation_report.php:129 +#: ../../../panelinstallation_report.php:130 +#: ../../../print.php:65 +msgid "Date:" +msgstr "التاريخ:" + +#: ../../../detailed_panelinstallation_report.php:111 +#: ../../../detailed_panelinstallation_report.php:122 +msgid "Dated:" +msgstr "الموافق:" + +#: ../../../detailed_panelinstallation_report.php:113 +msgid "Form No. (3) April 2006" +msgstr "\xD9\x86موذج رقم (3) نيسان 2006" + +#: ../../../detailed_panelinstallation_report.php:114 +msgid "Gentelmen:" +msgstr "السادة:" + +#: ../../../detailed_panelinstallation_report.php:115 +msgid "Subject: Panel Authorization" +msgstr "الموضوع:ترخيص الاعلانات" + +#: ../../../detailed_panelinstallation_report.php:116 +msgid "Reference to your letter No.:" +msgstr "اشارة لكتابكم ر قم:" + +#: ../../../detailed_panelinstallation_report.php:117 +msgid "Dated:............." +msgstr "تاريخ:............." + +#: ../../../detailed_panelinstallation_report.php:118 +msgid "After the joined field check on" +msgstr "وبعد ان تم الكشف الحسي المشترك معكم على" + +#: ../../../detailed_panelinstallation_report.php:119 +msgid "requesting advertisement panel installation,and inform you " +msgstr "المطلوب تركيب شواخص الاعلانات و اطلاعكم " + +#: ../../../detailed_panelinstallation_report.php:120 +msgid "about the technical specifications issued by MPWH and your approval on it,and" +msgstr "على المواصفات الفنية الصادرة من وزارة الاشغال العامة و الاسكان و موافقتكم عليها و" + +#: ../../../detailed_panelinstallation_report.php:121 +msgid " paying the fees by the financial receipt No.:" +msgstr "دفعكم للرسوم و البدلات المطلوبة بالايصال المالي رقم:" + +#: ../../../detailed_panelinstallation_report.php:123 +msgid "Based on the given authorities by the law of the material No.17" +msgstr "و استنادا للصلاحيات المخولة لي باحكام المادة 17" + +#: ../../../detailed_panelinstallation_report.php:124 +msgid " of the road law No. 24 for the year of 1986 and its adjustments," +msgstr "من قانون الطرق رقم 24 لسنة 1986 و تعديلاته " + +#: ../../../detailed_panelinstallation_report.php:125 +msgid "No objection regarding installing " +msgstr "لا مانع من ان تقوموا بتركيب" + +#: ../../../detailed_panelinstallation_report.php:126 +msgid "panles (s) In the locations, and specifications which were agreed as follows:" +msgstr "لوحة بالمواقع و المواصفات التي تم الاتفاق عليها المبينة كالاتي:-" + +#: ../../../detailed_panelinstallation_report.php:148 +msgid "Total of receipt:" +msgstr "المجموع الكلي للوصل المالي:" + +#: ../../../detailed_panelinstallation_report.php:149 +msgid "This permission will be considered canceled in case if you have" +msgstr "يعتبر هذا التصريح لاغيا في حال" + +#: ../../../detailed_panelinstallation_report.php:150 +msgid " violated the locations and/or the technical specifications of the advertisement." +msgstr "مخالفتكم المواقع او المواصفات الفنية للاعلان" + +#: ../../../detailed_panelinstallation_report.php:151 +msgid "You will be totally responsible,illegal panels will be removed" +msgstr "محملكم كافة المسؤوليات المترتبة على ذلك و سيتم ازالة المخالفة" + +#: ../../../detailed_panelinstallation_report.php:152 +msgid " based on the road law No. 24 for year 1986 and adjustments" +msgstr "وفقا لاحكام قانون الطرق رقم 24 لسنة 1986 و تعديلاته." + +#: ../../../detailed_panelinstallation_report.php:154 +msgid "Governorate Public works office" +msgstr "مكتب اشغال محافظة" + #: ../../../illegal_panelinstallation_report.php:29 msgid "Illegal Panel installation report" msgstr "تقرير اللوحات الاعلانية المخالفة" -#: ../../../illegal_panelinstallation_report.php:117 +#: ../../../illegal_panelinstallation_report.php:121 msgid "Illegal panel list from:" msgstr "قائمة اللوحات المخالفة من:" @@ -596,27 +686,22 @@ msgstr "تعريف" #: ../../../panelinstallation_report.php:29 +#: ../../../reports.php:33 msgid "Panel installation report" msgstr "تقرير الل\xD9\x88حات الاعلانية المرخصة" -#: ../../../panelinstallation_report.php:110 +#: ../../../panelinstallation_report.php:115 msgid "Unkown" msgstr "غير محدد" -#: ../../../panelinstallation_report.php:122 +#: ../../../panelinstallation_report.php:127 msgid "Responsible Engineer" msgstr "المهندس المسؤول:" -#: ../../../panelinstallation_report.php:124 +#: ../../../panelinstallation_report.php:129 msgid "Public Works Office for:" msgstr "مكتب اشغال محافظة:" -#: ../../../panelinstallation_report.php:124 -#: ../../../panelinstallation_report.php:125 -#: ../../../print.php:65 -msgid "Date:" -msgstr "التاريخ:" - #: ../../../panelpage.php:38 msgid "Road Advertisment Panel Control" msgstr "برنامج التحكم باللوحات الاعلانية على الطرق" @@ -637,15 +722,15 @@ msgid "Select To Date" msgstr "اختر نهاية الفترة" -#: ../../../paneltypes_report.php:52 +#: ../../../paneltypes_report.php:55 msgid "Panel installation on route for the period from" msgstr "تركيب اللوحات الاعلانية على الطرق خلال الفترة من" -#: ../../../paneltypes_report.php:53 +#: ../../../paneltypes_report.php:56 msgid "\t\t" msgstr "" -#: ../../../paneltypes_report.php:53 +#: ../../../paneltypes_report.php:56 msgid "To" msgstr "الى" @@ -695,14 +780,10 @@ msgid "denotes required field" msgstr "ادخل معلومات الحقول المطلوبة" -#: ../../../query.php:192 +#: ../../../query.php:196 msgid "Back to Panel" msgstr "العودة الى اللوحة" -#: ../../../reports.php:33 -msgid "Panel Installation list" -msgstr "قائمة اللوحات المركبة" - #: ../../../reports.php:35 msgid "Panel Types on routes" msgstr "انواع اللوحات على الطرق" @@ -711,14 +792,22 @@ msgid "Authorized Panel installation" msgstr "اللوحات الاعلانية المرخصة" +#: ../../../reports.php:37 +msgid "Ministry - Traffic Safty Directorate" +msgstr "الوزارة - مديرية السلامة المرورية" + #: ../../../reports.php:39 msgid "Illegal Panel installation" msgstr "اللوحات الاعلانية المخالفة" #: ../../../reports.php:41 msgid "Detailed Panel installation" -msgstr "تفصيل اللوحات المركبة المفصل" +msgstr "تقرير اللوحات المركبة المفصل" +#: ../../../reports.php:41 +msgid " Form No. (3)" +msgstr "نموذج رقم (3) نيسان 2006" + #: ../../../reports.php:43 msgid "Contract Panel installation" msgstr "لوحات العطاءات المركبة" @@ -1080,7 +1169,7 @@ #: ../../../admin/user_management.php:306 #: ../../../include/header.php:430 #: ../../../include/i18n.php:24 -#: ../../../include/dataobject/Public_panel.php:800 +#: ../../../include/dataobject/Public_panel.php:802 msgid "Action" msgstr "الاجراء" @@ -1281,8 +1370,8 @@ #: ../../../include/i18n.php:25 #: ../../../include/i18n.php:83 -#: ../../../include/dataobject/Public_panel.php:687 -#: ../../../include/dataobject/Public_panel.php:749 +#: ../../../include/dataobject/Public_panel.php:689 +#: ../../../include/dataobject/Public_panel.php:751 msgid "No" msgstr "لا" @@ -1291,8 +1380,8 @@ msgstr "غير معروف" #: ../../../include/i18n.php:27 -#: ../../../include/dataobject/Public_panel.php:687 -#: ../../../include/dataobject/Public_panel.php:749 +#: ../../../include/dataobject/Public_panel.php:689 +#: ../../../include/dataobject/Public_panel.php:751 msgid "Yes" msgstr "نعم" @@ -1339,7 +1428,7 @@ #: ../../../include/i18n.php:38 msgid "Total" -msgstr "المجموع" +msgstr "مجموع عدد اللوحات" #: ../../../include/i18n.php:39 msgid "Notes" @@ -1565,6 +1654,18 @@ msgid "Advertisement" msgstr "لوحة اعلانية" +#: ../../../include/i18n.php:101 +msgid "Id" +msgstr "رقم اللوحة" + +#: ../../../include/i18n.php:102 +msgid "x" +msgstr "X" + +#: ../../../include/i18n.php:103 +msgid "y" +msgstr "Y" + #: ../../../include/dataobject/Public_panel.php:144 msgid "Please Enter the X coordinate for the panel." msgstr "الرجاء ادخال الاحداثية X للوحة" @@ -1796,8 +1897,8 @@ msgstr "يوجد جزيرة:" #: ../../../include/dataobject/Public_panel.php:347 -#: ../../../include/dataobject/Public_panel.php:714 -#: ../../../include/dataobject/Public_panel.php:732 +#: ../../../include/dataobject/Public_panel.php:716 +#: ../../../include/dataobject/Public_panel.php:734 msgid "Date" msgstr "التاريخ:" @@ -1838,7 +1939,7 @@ msgstr "نوع اللوحة و ابعادها:" #: ../../../include/dataobject/Public_panel.php:354 -#: ../../../include/dataobject/Public_panel.php:719 +#: ../../../include/dataobject/Public_panel.php:721 msgid "Panel Area" msgstr "مساحة اللوحة:" @@ -1887,7 +1988,7 @@ msgstr "رقم الترخيص:" #: ../../../include/dataobject/Public_panel.php:361 -#: ../../../include/dataobject/Public_panel.php:737 +#: ../../../include/dataobject/Public_panel.php:739 msgid "Registeration No.:" msgstr "رقم التسجيل:" @@ -1925,98 +2026,98 @@ msgid "%s: This field is required." msgstr "%s: يجب ادخال هذا الحقل." -#: ../../../include/dataobject/Public_panel.php:602 +#: ../../../include/dataobject/Public_panel.php:604 msgid "Select One" msgstr "اختر واحد" -#: ../../../include/dataobject/Public_panel.php:680 +#: ../../../include/dataobject/Public_panel.php:682 msgid "Contract" msgstr "عطاء" -#: ../../../include/dataobject/Public_panel.php:680 +#: ../../../include/dataobject/Public_panel.php:682 msgid "Private" msgstr "قطاع خاص" -#: ../../../include/dataobject/Public_panel.php:680 +#: ../../../include/dataobject/Public_panel.php:682 msgid "Goverment" msgstr "حكومي" -#: ../../../include/dataobject/Public_panel.php:686 +#: ../../../include/dataobject/Public_panel.php:688 msgid "Panel catagory" msgstr "فئة اللوحة" -#: ../../../include/dataobject/Public_panel.php:694 +#: ../../../include/dataobject/Public_panel.php:696 msgid "Median available" msgstr "يوجد جزيرة" -#: ../../../include/dataobject/Public_panel.php:696 +#: ../../../include/dataobject/Public_panel.php:698 msgid "Panel image" msgstr "صورة اللوحة:" -#: ../../../include/dataobject/Public_panel.php:701 +#: ../../../include/dataobject/Public_panel.php:703 msgid "Panel Area:" msgstr "مساحة اللوحة:" -#: ../../../include/dataobject/Public_panel.php:703 -#: ../../../include/dataobject/Public_panel.php:721 +#: ../../../include/dataobject/Public_panel.php:705 +#: ../../../include/dataobject/Public_panel.php:723 msgid "Use fees" msgstr "بدل استغلال حرم الطريق" -#: ../../../include/dataobject/Public_panel.php:705 -#: ../../../include/dataobject/Public_panel.php:723 +#: ../../../include/dataobject/Public_panel.php:707 +#: ../../../include/dataobject/Public_panel.php:725 msgid "Annualfees" msgstr "الرسوم السنوية:" -#: ../../../include/dataobject/Public_panel.php:707 -#: ../../../include/dataobject/Public_panel.php:725 +#: ../../../include/dataobject/Public_panel.php:709 +#: ../../../include/dataobject/Public_panel.php:727 msgid "Total fees" msgstr "المجموع" -#: ../../../include/dataobject/Public_panel.php:743 +#: ../../../include/dataobject/Public_panel.php:745 msgid "Total fees:" msgstr "مجموع الرسوم:" -#: ../../../include/dataobject/Public_panel.php:749 +#: ../../../include/dataobject/Public_panel.php:751 msgid "Right of Way:" msgstr "داخل الحرم:" -#: ../../../include/dataobject/Public_panel.php:792 +#: ../../../include/dataobject/Public_panel.php:794 msgid "ID" -msgstr "رقم التعريف" +msgstr "رقم اللوحة" -#: ../../../include/dataobject/Public_panel.php:793 +#: ../../../include/dataobject/Public_panel.php:795 msgid "Company name" msgstr "اسم الجهة الطالبة" -#: ../../../include/dataobject/Public_panel.php:794 +#: ../../../include/dataobject/Public_panel.php:796 msgid "National number" msgstr "الرقم الوطني:" -#: ../../../include/dataobject/Public_panel.php:795 +#: ../../../include/dataobject/Public_panel.php:797 msgid "Mother name" msgstr "اسم الام:" -#: ../../../include/dataobject/Public_panel.php:796 +#: ../../../include/dataobject/Public_panel.php:798 msgid "Address" msgstr "العنوان:" -#: ../../../include/dataobject/Public_panel.php:797 +#: ../../../include/dataobject/Public_panel.php:799 msgid "Telephone no." msgstr "رقم الهاتف:" -#: ../../../include/dataobject/Public_panel.php:798 +#: ../../../include/dataobject/Public_panel.php:800 msgid "Fax no." msgstr "رقم الفاكس:" -#: ../../../include/dataobject/Public_panel.php:799 +#: ../../../include/dataobject/Public_panel.php:801 msgid "Mobile no." msgstr "رقم المحمول:" -#: ../../../include/dataobject/Public_panel.php:816 +#: ../../../include/dataobject/Public_panel.php:818 msgid "[View on Map]" msgstr "[اظهار على الخريطة]" -#: ../../../include/dataobject/Public_panel.php:822 +#: ../../../include/dataobject/Public_panel.php:824 msgid "[Edit]" msgstr "[تحرير]" Modified: trunk/rapc/panelinstallation_report.php =================================================================== --- trunk/rapc/panelinstallation_report.php 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/panelinstallation_report.php 2007-03-18 09:27:53 UTC (rev 58) @@ -101,12 +101,13 @@ left outer join routetype on (routetype.codedvalue=panel.routetype) left outer join facecount on (facecount.codedvalue=panel.facecount) ".$strWhere; */ -$strQuery="select companyname,registerno,panelsubject,routetype,routename,dimension,boolrow, -sum(totalfees),usefees,facecount,count(*) as panelcount,insurance,receiptno,recEiptdate, +$strQuery="select id,x,y,companyname,registerno,panelsubject,routetype,routename, +dimension,facecount,count(*) as panelcount,boolrow,usefees, +sum(totalfees),insurance,receiptno,recEiptdate, insurancereceiptno,insurancereceiptdate,13-(date_part('month',date)) as Advertisement_period from panelinformation ".$strWhere."group by companyname,routename,panelsubject, routetype,dimension,facecount,insurance,usefees,receiptno,receiptdate, -insurancereceiptdate,boolrow,registerno,insurancereceiptno,date"; +insurancereceiptdate,boolrow,registerno,insurancereceiptno,date,id,x,y"; //print_r($strQuery); if ($Queryform->exportvalue('district')!=0){ $strDistrict = $Queryform->exportvalue('district'); Modified: trunk/rapc/reports.php =================================================================== --- trunk/rapc/reports.php 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/reports.php 2007-03-18 09:27:53 UTC (rev 58) @@ -30,15 +30,15 @@ <ul> <li><a href="panelinstallation_report.php?PHPSESSID=session_id()">'. - _("Panel Installation list").'</a></li> + _("Panel installation report").'</a></li> <li><a href="paneltypes_report.php?PHPSESSID=session_id()">'. _("Panel Types on routes").'</a></li> <li><a href="authorized_panel_report.php?PHPSESSID=session_id()">'. - _("Authorized Panel installation").'</a></li> + _("Authorized Panel installation")." " ._("Ministry - Traffic Safty Directorate").'</a></li> <li><a href="illegal_panelinstallation_report.php?PHPSESSID=session_id()">'. _("Illegal Panel installation").'</a></li> <li><a href="detailed_panelinstallation_report.php?PHPSESSID=session_id()">'. - _("Detailed Panel installation").'</a></li> + _("Detailed Panel installation").' '._(' Form No. (3)').'</a></li> <li><a href="contract_panel_report.php?PHPSESSID=session_id()">'. _("Contract Panel installation").'</a></li> Modified: trunk/rapc/script/create_views.sql =================================================================== --- trunk/rapc/script/create_views.sql 2007-02-15 06:56:14 UTC (rev 57) +++ trunk/rapc/script/create_views.sql 2007-03-18 09:27:53 UTC (rev 58) @@ -23,7 +23,7 @@ -- psql -d dccss -f create_views.sql create or replace view panelinformation as -select panel.companyname,panel.panelsubject,panel.district,panel.date, +select panel.id,panel.companyname,panel.panelsubject,panel.district,panel.date, routetype.description as routetype, panel.routename,yesno.description as boolrow, paneldimension.description as dimension,facecount.description as facecount, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-03-18 11:56:31
|
Revision: 58 http://svn.sourceforge.net/rapc/?rev=58&view=rev Author: maher_karim Date: 2007-03-18 02:27:53 -0700 (Sun, 18 Mar 2007) Log Message: ----------- 2007-03-18 Maher Abdel karim <mah...@do...> * script/create_view.sql:add panel.id to the view. * local/ar/LC_MESSAGES/rapc.po:update transaltions. * panelinstallation_report.php:adjust report based on MPWH request. * include/i18n.php:adjust translation. * authorized_panel_report.php:adjust report based on MPWH request. * contract_panel_report.php: * detailed_panelinstallation_report.php: * illegal_panelinstallation_report.php: * public_panel.php: * reports.php:adjust based on MPWH requests. Modified Paths: -------------- trunk/rapc/authorized_panel_report.php trunk/rapc/changelog trunk/rapc/illegal_panelinstallation_report.php trunk/rapc/include/dataobject/Public_panel.php trunk/rapc/include/i18n.php trunk/rapc/locale/ar/LC_MESSAGES/rapc.po trunk/rapc/panelinstallation_report.php trunk/rapc/reports.php trunk/rapc/script/create_views.sql This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-03-18 22:55:46
|
Revision: 59 http://svn.sourceforge.net/rapc/?rev=59&view=rev Author: maher_karim Date: 2007-03-18 06:28:05 -0700 (Sun, 18 Mar 2007) Log Message: ----------- 2007-03-18 Maher Abdel karim <mah...@do...> * script/create_view.sql:add panel.id to the view. * local/ar/LC_MESSAGES/rapc.po:update transaltions. * panelinstallation_report.php:adjust report based on MPWH request. * include/i18n.php:adjust translation. * authorized_panel_report.php:adjust report based on MPWH request. * contract_panel_report.php: * detailed_panelinstallation_report.php: * illegal_panelinstallation_report.php: * public_panel.php: * reports.php:adjust based on MPWH requests. Modified Paths: -------------- trunk/rapc/contract_panel_report.php trunk/rapc/illegal_panelinstallation_report.php trunk/rapc/include/dcmmaputil.php trunk/rapc/map.php trunk/rapc/script/create_rapc_ddl.sql Modified: trunk/rapc/contract_panel_report.php =================================================================== --- trunk/rapc/contract_panel_report.php 2007-03-18 09:27:53 UTC (rev 58) +++ trunk/rapc/contract_panel_report.php 2007-03-18 13:28:05 UTC (rev 59) @@ -88,7 +88,7 @@ Main, count(CASE routetype WHEN 2 THEN 1 END) as Secondary, count(CASE routetype WHEN 3 THEN 1 END) as Village,companyname,registerno, paneldimension.description as dimension, -facecount,count(*) as totalpanels,sum(totalfees) as fees, +facecount,count(*) as totalpanels,sum(totalfees) as totalfees, sum(contractunitprice) as pedding, ((sum(totalfees)+ sum(contractunitprice))) as total from panel left outer join paneldimension on (paneldimension.codedvalue=panel.paneldimension) ".$strWhere." Modified: trunk/rapc/illegal_panelinstallation_report.php =================================================================== --- trunk/rapc/illegal_panelinstallation_report.php 2007-03-18 09:27:53 UTC (rev 58) +++ trunk/rapc/illegal_panelinstallation_report.php 2007-03-18 13:28:05 UTC (rev 59) @@ -109,10 +109,10 @@ routetype,dimension,facecount,insurance,usefees,receiptno,receiptdate, insurancereceiptdate,boolrow"; */ -$strQuery="select id,companyname,panelsubject,routetype,routename,boolrow,dimension, -sum(totalfees),facecount,count(*),usefees,verificationreceiptno, +$strQuery="select id,x,y,companyname,panelsubject,routetype,routename,boolrow,dimension, +facecount,count(*), usefees,sum(totalfees),verificationreceiptno, verificationreceiptdate from panelinformation ".$strWhere." group by companyname,routename,panelsubject, -routetype,dimension,facecount,insurance,usefees,verificationreceiptno,verificationreceiptdate,boolrow,id"; +routetype,dimension,facecount,insurance,usefees,verificationreceiptno,verificationreceiptdate,boolrow,id,x,y"; //print_r($strQuery); $objTable = new DbTable($DccssPage->postgis->db, $strQuery); @@ -125,6 +125,9 @@ $_POST['district'].'</B>'); $DccssPage->add($objTable->toHtml()); - +$DccssPage->add('<br><table width=100%><tr><td>'._('Responsible Engineer').'</td><td> +</td><td>'. +_('Public Works Office for:')._($_POST['district']).'</td></tr><tr><td>'._('Date:'). +'</td><td></td><td>'._('Date:').'</td></tr></table>'); echo $DccssPage->toHTML(); ?> \ No newline at end of file Modified: trunk/rapc/include/dcmmaputil.php =================================================================== --- trunk/rapc/include/dcmmaputil.php 2007-03-18 09:27:53 UTC (rev 58) +++ trunk/rapc/include/dcmmaputil.php 2007-03-18 13:28:05 UTC (rev 59) @@ -361,16 +361,7 @@ "&KEYMAPXSIZE=120&KEYMAPYSIZE=66&MapSize=400%2C300&PREVIOUS_MODE=1". "&PointID=".$this->intSelectedID."&action=movePoint". "&id=".$this->intSelectedID."\">". - _("Move")."</a> ][ ". - "<a href=\"map.php?PHPSESSID=".session_id(). - "&gravitymain=Y&pressurizedmain=Y&ViewRegion=Quick+". - "View&minx=".$_REQUEST["minx"]."&miny=".$_REQUEST["miny"]."&maxx=". - $_REQUEST["maxx"]."&maxy=".$_REQUEST["maxy"]."&imagewidth=400&". - "imageheight=300&CMD=MOVE_Point". - "&KEYMAPXSIZE=120&KEYMAPYSIZE=66&MapSize=400%2C300&PREVIOUS_MODE=1". - "&PointID=".$this->intSelectedID."&action=deletePoint". - "&id=".$this->intSelectedID."\">". - _("Delete")."</a> ]"; + _("Move")."</a> ]"; } } else { Modified: trunk/rapc/map.php =================================================================== --- trunk/rapc/map.php 2007-03-18 09:27:53 UTC (rev 58) +++ trunk/rapc/map.php 2007-03-18 13:28:05 UTC (rev 59) @@ -181,8 +181,8 @@ $objLayer->open(); $Shape=$objLayer->getShape(0,$Risultato); //$newbuffered = $Shape->buffer(20); - print_r ($Shape->values); - print_r('Maher'); + // print_r ($Shape->values); + //print_r('Maher'); @@ -198,7 +198,7 @@ $buffered_shape = $Shape->buffer(200); $layer = $gpoMap->getLayerByName('buffer'); $layer->set("status", MS_ON); -print_r($buffered_shape); +//print_r($buffered_shape); //$layer->addFeature($buffered_shape); @@ -242,7 +242,7 @@ $strMessages = $strMessages._("Deleted Point."." "."PointID:".$_REQUEST['id']); break; case "acceptedPointMove" : - print_r('Accepted'); + //print_r('Accepted'); /** * \todo Update GeoCode in DeliveryPoint and related Subscriber objects. */ @@ -252,20 +252,7 @@ /** * Log the old DeliveryPoint coordinates in the History table. */ - foreach(array('X', 'Y') as $strAxis) { - $strLogInsert = 'insert into History (RecordOID, TableName, Date, - DccssUserOID, Attribute, PreviousValue) values('.$PointID. - ', \'panel\', now(), \''.$_SESSION['UserName'].'\', \''.$strAxis. - '\',(select '.$strAxis.'(the_geom) from panel where id='. - $PointID.'))'; - - - /** - * \todo Check the query result. - */ - pg_query($strLogInsert); - } - + //start checking of deliverypoint values $objPoint = DB_DataObject::factory('public.panel'); if(PEAR::isError($objPoint)or(NULL == $objPoint)) { Modified: trunk/rapc/script/create_rapc_ddl.sql =================================================================== --- trunk/rapc/script/create_rapc_ddl.sql 2007-03-18 09:27:53 UTC (rev 58) +++ trunk/rapc/script/create_rapc_ddl.sql 2007-03-18 13:28:05 UTC (rev 59) @@ -183,6 +183,7 @@ -- History table create table History ( +roecordoid integer, companyname integer, routename varchar(10), x float, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-03-19 01:55:36
|
Revision: 59 http://svn.sourceforge.net/rapc/?rev=59&view=rev Author: maher_karim Date: 2007-03-18 06:28:05 -0700 (Sun, 18 Mar 2007) Log Message: ----------- 2007-03-18 Maher Abdel karim <mah...@do...> * script/create_view.sql:add panel.id to the view. * local/ar/LC_MESSAGES/rapc.po:update transaltions. * panelinstallation_report.php:adjust report based on MPWH request. * include/i18n.php:adjust translation. * authorized_panel_report.php:adjust report based on MPWH request. * contract_panel_report.php: * detailed_panelinstallation_report.php: * illegal_panelinstallation_report.php: * public_panel.php: * reports.php:adjust based on MPWH requests. Modified Paths: -------------- trunk/rapc/contract_panel_report.php trunk/rapc/illegal_panelinstallation_report.php trunk/rapc/include/dcmmaputil.php trunk/rapc/map.php trunk/rapc/script/create_rapc_ddl.sql This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-03-22 07:07:26
|
Revision: 60 http://svn.sourceforge.net/rapc/?rev=60&view=rev Author: maher_karim Date: 2007-03-22 00:07:21 -0700 (Thu, 22 Mar 2007) Log Message: ----------- 2007-03-22 Maher Abdel karim <mah...@do...> * conf/rapc_ar.map * conf/rapc_en.map:use tileindex for building layer. * plugin/imageidentifyplugin.php:display the panel image. Modified Paths: -------------- trunk/rapc/changelog trunk/rapc/conf/rapc_ar.map trunk/rapc/conf/rapc_en.map trunk/rapc/map.php trunk/rapc/plugin/imageidentifyplugin.php Modified: trunk/rapc/changelog =================================================================== --- trunk/rapc/changelog 2007-03-18 13:28:05 UTC (rev 59) +++ trunk/rapc/changelog 2007-03-22 07:07:21 UTC (rev 60) @@ -1,3 +1,9 @@ +2007-03-22 Maher Abdel karim <mah...@do...> + + * conf/rapc_ar.map + * conf/rapc_en.map:use tileindex for building layer. + * plugin/imageidentifyplugin.php:display the panel image. + 2007-03-18 Maher Abdel karim <mah...@do...> * script/create_view.sql:add panel.id to the view. Modified: trunk/rapc/conf/rapc_ar.map =================================================================== --- trunk/rapc/conf/rapc_ar.map 2007-03-18 13:28:05 UTC (rev 59) +++ trunk/rapc/conf/rapc_ar.map 2007-03-22 07:07:21 UTC (rev 60) @@ -1,6 +1,6 @@ -# MapFile created with Gix Export Tool - Thu Aug 31 11:43:58 2006 +# MapFile created with Gix Export Tool - Thu Aug 31 11:43:58 2006 # http://gix.sourceforge.net -# View Date : 31 ��, 2006 08:16:18 � +# View Date : 31 ??, 2006 08:16:18 ? # MAP NAME 'View1' @@ -88,7 +88,50 @@ COLOR 255 0 0 outline 24 END #QUERYMAP - + LAYER #plot.shp + #TRANSPARENCY 100 + NAME 'basemap' + METADATA + gix_layername "balqa.shp" + gix_layerfieldalias "plot_no" + END #METADATA + TOLERANCE 3 + labelitem "plot_no" + TOLERANCEUNITS pixels + MAXSCALE 15000 + TILEINDEX 'E:\gis_data\Mapping\dls_data\basemap.shp' + TILEITEM 'location' + # DATA 'E:\gis_data\Mapping\dls_data\balqa\balqa-basemap.shp' + HEADER 'header.html' + FOOTER 'footer.html' + LABELCACHE on +# TILEINDEX '' +# TILEITEM '' + STATUS on + DEBUG false + TRANSFORM true + TYPE polygon + CLASS + NAME 'basemap' + template "ttt_query.html" + #RASTERFILL_STYLE_SOLID + + STYLE + OUTLINECOLOR 0 0 0 + SIZE 1 + COLOR 255 255 255 + BACKGROUNDCOLOR 255 255 0 + END #STYLE + + + label + color 0 0 0 + position cc + end + END #CLASS + + END #LAYER + LAYER #Adminsub.shp TRANSPARENCY 100 NAME 'Adminsub' Modified: trunk/rapc/conf/rapc_en.map =================================================================== --- trunk/rapc/conf/rapc_en.map 2007-03-18 13:28:05 UTC (rev 59) +++ trunk/rapc/conf/rapc_en.map 2007-03-22 07:07:21 UTC (rev 60) @@ -5,15 +5,15 @@ MAP NAME 'View1' SIZE 550 400 - EXTENT 253216.66562500 200278.73750000 738982.64687500 718755.76250000 + EXTENT 4988.104696 -187798.473479 658230.991626 325785.589348 UNITS meters RESOLUTION 72 CONFIG PROJ_LIB 'C:/Proj/' DATAPATTERN '' TEMPLATEPATTERN '' SHAPEPATH '' - SYMBOLSET 'c:\program files\mpwh\rapc\etc\symbols.sym' - FONTSET 'c:\program files\mpwh\rapc\etc\fonts.txt' + SYMBOLSET 'c:\program files\rapc\etc\symbols.sym' + FONTSET 'c:\program files\rapc\etc\fonts.txt' STATUS on IMAGECOLOR 255 255 255 IMAGETYPE png @@ -24,14 +24,14 @@ MINSCALE 0 IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" - LOG 'c:\program files\mpwh\rapc\conf\rapc_en.log' + LOG 'c:\program files\rapc\conf\rapc_en.log' METADATA END #METADATA END #WEB REFERENCE - IMAGE 'c:\program files\mpwh\rapc\conf\rapc_en.jpg' - EXTENT 253216.66562500 200278.73750000 738982.64687500 718755.76250000 + IMAGE 'c:\program files\rapc\conf\rapc_en.jpg' + EXTENT 4988.104696 -187798.473479 658230.991626 325785.589348 STATUS on COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 @@ -93,12 +93,12 @@ TRANSPARENCY 100 NAME 'Adminsub' METADATA - gix_layername "Adminsub.shp" + gix_layername "Admin.shp" END #METADATA TOLERANCE 3 TOLERANCEUNITS pixels - DATA 'e:\data\mpwh\adminsub\adminsub.shp' + DATA 'e:\data\admin.shp' HEADER 'header.html' FOOTER 'footer.html' LABELCACHE on @@ -125,8 +125,52 @@ END #CLASS END #LAYER + LAYER #plot.shp + #TRANSPARENCY 100 + NAME 'basemap' + METADATA + gix_layername "balqa.shp" + gix_layerfieldalias "plot_no" + END #METADATA + TOLERANCE 3 + labelitem "plot_no" + TOLERANCEUNITS pixels + MAXSCALE 15000 + TILEINDEX 'E:\gis_data\Mapping\dls_data\basemap.shp' + TILEITEM 'location' + # DATA 'E:\gis_data\Mapping\dls_data\balqa\balqa-basemap.shp' + HEADER 'header.html' + FOOTER 'footer.html' + LABELCACHE on +# TILEINDEX '' +# TILEITEM '' + STATUS on + DEBUG false + TRANSFORM true + TYPE polygon + CLASS + NAME 'basemap' + template "ttt_query.html" + #RASTERFILL_STYLE_SOLID + + STYLE + OUTLINECOLOR 0 0 0 + SIZE 1 + COLOR 255 255 255 + BACKGROUNDCOLOR 255 255 0 + END #STYLE + + + label + color 0 0 0 + position cc + end + END #CLASS + END #LAYER + + LAYER #Borders.shp TRANSPARENCY 100 NAME 'Borders.shp' @@ -136,7 +180,7 @@ END #METADATA TOLERANCE 3 TOLERANCEUNITS pixels - DATA 'e:\data\mpwh\border\borders.shp' + DATA 'e:\data\border.shp' HEADER 'header.html' FOOTER 'footer.html' LABELCACHE on @@ -165,14 +209,14 @@ TRANSPARENCY 100 NAME 'Msroads' METADATA - "DESCRIPTION" "Msroads" + "DESCRIPTION" "Msroad" "RESULT_FIELDS" "ID ROADNAME ROUTENAME ROADCLASS NODEFROM NODETO LENGTH MLENGTH" gix_layerfieldalias "ID Roadname Routename Roadclass Nodefrom Nodeto Length Mlength" END #METADATA TOLERANCE 3 TOLERANCEUNITS pixels labelitem "ROUTENAME" - DATA 'e:\data\mpwh\msroads\msroads.shp' + DATA 'e:\data\msroad.shp' HEADER 'header.html' FOOTER 'footer.html' LABELCACHE on @@ -188,7 +232,7 @@ #PEN STYLE - SIZE 3 + #SIZE 100 COLOR 68 81 196 END #STYLE label @@ -203,7 +247,7 @@ NAME 'Villages' TOLERANCE 3 TOLERANCEUNITS pixels - DATA 'e:\data\mpwh\village\villages.shp' + DATA 'e:\data\village.shp' HEADER 'header.html' FOOTER 'footer.html' LABELCACHE on @@ -289,27 +333,6 @@ TRANSPARENT on END #OUTPUTFORMAT - LAYER - NAME "buffer" - - - TYPE LINE - STATUS OFF - CLASS - COLOR 255 0 0 - END -END # layer - - -LAYER - NAME "nobuffer" - - TYPE LINE - STATUS OFF - CLASS - COLOR 0 255 0 - END -END # layer - + END #MAP Modified: trunk/rapc/map.php =================================================================== --- trunk/rapc/map.php 2007-03-18 13:28:05 UTC (rev 59) +++ trunk/rapc/map.php 2007-03-22 07:07:21 UTC (rev 60) @@ -99,13 +99,13 @@ } if (($_POST['Frompoint']!=0)&&($_POST['Topoint']!=0)){ - $strQueryDistance = "select distance(p2,(select the_geom as p from panel - where id=".$_POST['Frompoint'].")) from + $strQueryDistance = "select distance(p2,(select the_geom as p from panel + where id=".$_POST['Frompoint'].")) from (select the_geom as p2 from panel where id=".$_POST['Topoint'].") as d"; $objResult = pg_query($strQueryDistance); if(($objResult)&&(pg_numrows($objResult) > 0)) { $arrRow = pg_fetch_row($objResult, 0); - + $distance=$arrRow[0]; //pass the id of the selected Point. ?><script> document.forms["mapform"].distance.value=1; @@ -134,13 +134,13 @@ // print_r(str_replace(" ","+",$_REQUEST['searchvalue'])); //$objLayer->setFilter($_REQUEST['searchvalue']); //print_r($objLayer->getNumResults()); - + $strExp="([VILL_NO]=".$_REQUEST['vill_no']." and [BLOCK_NO]=".$_REQUEST['block']." AND [".$_REQUEST['fieldname']."]=".$_REQUEST['plot'].")"; if ($_REQUEST['block']!=0){ if (@$objLayer->queryByAttributes('VILL_NO',$strExp,MS_SINGLE) ==MS_SUCCESS) { - + $ResultCount=$objLayer->getNumResults(); - + $gbShowQueryResults = TRUE; for ($i=0; $i < $ResultCount; $i++) { $QueryResult=$objLayer->getResult($i); @@ -153,27 +153,27 @@ $objLayer->close(); $gpoMap->setextent($oExtents->minx-10,$oExtents->miny-10,$oExtents->maxx+10,$oExtents->maxy+10); } - - + + $objImage=$gpoMap->draw(); $_REQUEST['action']=''; } - + } else { $strMessages = $strMessages._(("Nothing found")); } break; - - + + case "search": // $objLayer = $gpoMap->getlayerbyname($_POST[layer][0]); $objLayer = $gpoMap->getlayerbyname('Msroads'); // print_r(str_replace(" ","+",$_REQUEST['searchvalue'])); - + if ($objLayer->queryByAttributes('ROUTENAME',str_replace(" ","+",$_REQUEST['searchvalue']),MS_SINGLE) ==MS_SUCCESS) { - + $ResultCount=$objLayer->getNumResults(); - + $gbShowQueryResults = TRUE; for ($i=0; $i < $ResultCount; $i++) { $QueryResult=$objLayer->getResult($i); @@ -183,27 +183,28 @@ //$newbuffered = $Shape->buffer(20); // print_r ($Shape->values); //print_r('Maher'); - + $oExtents=$Shape->bounds; //print_r($oExtents); $objLayer->close(); $gpoMap->setextent($oExtents->minx-10,$oExtents->miny-10,$oExtents->maxx+10,$oExtents->maxy+10); } -$layer2 = $gpoMap->getLayerByName('nobuffer'); +/*$layer2 = $gpoMap->getLayerByName('nobuffer'); $layer2->set("status", MS_ON); $layer2->addFeature($Shape); $buffered_shape = $Shape->buffer(200); $layer = $gpoMap->getLayerByName('buffer'); $layer->set("status", MS_ON); -//print_r($buffered_shape); -//$layer->addFeature($buffered_shape); - - +print_r($buffered_shape); +$layer->addFeature($buffered_shape); +*/ + + $objImage=$gpoMap->draw(); - + } else { $strMessages = $strMessages._(("Not working")); } @@ -215,7 +216,7 @@ "<a href=\"panelpage.php?action=edit&id=".$PointID. "\">#".$PointID."</a>"); } - + break; case "acceptypointlocation" : @@ -252,7 +253,7 @@ /** * Log the old DeliveryPoint coordinates in the History table. */ - + //start checking of deliverypoint values $objPoint = DB_DataObject::factory('public.panel'); if(PEAR::isError($objPoint)or(NULL == $objPoint)) { @@ -264,7 +265,7 @@ if ($objPoint->count() > 0) { //Store original deliverypoint geocode value. $originalid = $objPoint->id; - + } else { echo _("NO geocode value returned"); } @@ -274,11 +275,11 @@ $strQuery = 'BEGINS; '; $strUpdatePoint = " update panel set the_geom=GeometryFromText('POINT(". $_REQUEST["PointX"]." ".$_REQUEST["PointY"].")', -1) where id=".$PointID; - + pg_query($strUpdatePoint); - + /** * \todo Check the query result. */ @@ -460,7 +461,7 @@ function distance(){ if (document.forms["mapform"].Frompoint.value != 0 && document.forms["mapform"].Topoint.value !=0){ - + } } </script> @@ -600,7 +601,7 @@ <option value="394079,485975,575783,568638">Zarqa</option> <option value="363277,569659,414272,625700">Irbed</option> - + </select><br /> <SELECT name="MapSize" onChange="MapSizeSelected()" title="<?= _("Select the map size from the list.") ?>"> <OPTION><?= _("Map Size")?></OPTION> @@ -626,7 +627,7 @@ </tr> <tr><td> - + <table> <tr><td> <?= _("From Point:")?><input size="5" type="text" maxlength="5" name="Frompoint" value="" length="5"> Modified: trunk/rapc/plugin/imageidentifyplugin.php =================================================================== --- trunk/rapc/plugin/imageidentifyplugin.php 2007-03-18 13:28:05 UTC (rev 59) +++ trunk/rapc/plugin/imageidentifyplugin.php 2007-03-22 07:07:21 UTC (rev 60) @@ -118,11 +118,11 @@ $this->objLayer->open(); $objShape = $this->objLayer->getShape(0,$Risultato); $arrValues = $objShape->values; - + $strValue = $arrValues[$this->arrConfiguration['Field']]; $strImageLocation = sprintf($this->arrConfiguration['ImageLocation'], $strValue); - + if(!is_dir($strImageLocation)) continue; if($handle = opendir($strImageLocation)) { while(false !== ($strFile = readdir($handle))) { @@ -140,7 +140,10 @@ } $objTable->addRow(array('<a href="'. sprintf($this->arrConfiguration['ImageLocationURL'], $strValue). - $strFile.'">'.$strFile.'</a> ', $strValue)); + $strFile.'">'.$strFile.'</a> ', $strValue,'<image src="'. + sprintf($this->arrConfiguration['ImageLocationURL'], $strValue). + $strFile.'" width=100 height=100 />')); + } } closedir($handle); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-03-22 07:07:28
|
Revision: 60 http://svn.sourceforge.net/rapc/?rev=60&view=rev Author: maher_karim Date: 2007-03-22 00:07:21 -0700 (Thu, 22 Mar 2007) Log Message: ----------- 2007-03-22 Maher Abdel karim <mah...@do...> * conf/rapc_ar.map * conf/rapc_en.map:use tileindex for building layer. * plugin/imageidentifyplugin.php:display the panel image. Modified Paths: -------------- trunk/rapc/changelog trunk/rapc/conf/rapc_ar.map trunk/rapc/conf/rapc_en.map trunk/rapc/map.php trunk/rapc/plugin/imageidentifyplugin.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-05-28 11:39:38
|
Revision: 61 http://svn.sourceforge.net/rapc/?rev=61&view=rev Author: maher_karim Date: 2007-05-28 04:39:33 -0700 (Mon, 28 May 2007) Log Message: ----------- 2007-05-28 Maher Abdel karim <mah...@do...> * panelinstallation_report.php:fixed district value handling * panelpage.php:assign default values for edit based on passed id. Modified Paths: -------------- trunk/rapc/changelog trunk/rapc/panelinstallation_report.php trunk/rapc/panelpage.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-05-28 11:39:39
|
Revision: 61 http://svn.sourceforge.net/rapc/?rev=61&view=rev Author: maher_karim Date: 2007-05-28 04:39:33 -0700 (Mon, 28 May 2007) Log Message: ----------- 2007-05-28 Maher Abdel karim <mah...@do...> * panelinstallation_report.php:fixed district value handling * panelpage.php:assign default values for edit based on passed id. Modified Paths: -------------- trunk/rapc/changelog trunk/rapc/panelinstallation_report.php trunk/rapc/panelpage.php Modified: trunk/rapc/changelog =================================================================== --- trunk/rapc/changelog 2007-03-22 07:07:21 UTC (rev 60) +++ trunk/rapc/changelog 2007-05-28 11:39:33 UTC (rev 61) @@ -1,3 +1,10 @@ +2007-05-28 Maher Abdel karim <mah...@do...> + + * panelinstallation_report.php:fixed district value + handling + * panelpage.php:assign default values for edit based + on passed id. + 2007-03-22 Maher Abdel karim <mah...@do...> * conf/rapc_ar.map Modified: trunk/rapc/panelinstallation_report.php =================================================================== --- trunk/rapc/panelinstallation_report.php 2007-03-22 07:07:21 UTC (rev 60) +++ trunk/rapc/panelinstallation_report.php 2007-05-28 11:39:33 UTC (rev 61) @@ -61,29 +61,29 @@ if (strtolower($_SESSION['UserName'])!='admin'){ $strWhere =" where panelinformation.username='".$_SESSION['UserName']."'"; } else { - $strWhere =" where panelinformation.username<>''"; + $strWhere =" where panelinformation.username<>''"; } //print_r($_POST['district']); -if ($_POST['district']!=''){ +if ($_POST['district']!='0'){ $strWhere = $strWhere." and panelinformation.district='".$Queryform->exportvalue('district')."'"; - + } else { $strWhere = $strWhere." and panelinformation.district<>''"; } if (($_POST['fromdate']['d']!=0)&&($_POST['fromdate']['m']!=0)&&($_POST['fromdate']['Y']!=0)) { $strWhere = $strWhere . " and date >=to_date('".$_POST['fromdate']['Y']."-". $_POST['fromdate']['m']."-".$_POST['fromdate']['d']."','YYYY-MM-dd')"; - - + + } elseif (($_POST['todate']['d']!=0)&&($_POST['todate']['m']!=0)&&($_POST['todate']['Y']!=0)){ $strWhere = $strWhere . " and date <= to_date('".$_POST['todate']['Y']."-". $_POST['todate']['m']."-".$_POST['todate']['d']."','YYYY-MM-dd')"; } - + /*$strQuery = "select panel.companyname,panel.panelsubject, routetype.description as routetype, panel.routename, @@ -92,13 +92,13 @@ panel.totalfees,panel.usefees, panel.receiptno,panel.receiptdate,panel.insurancereceiptno, -panel.insurancereceiptdate,panel.notes - from panel left outer join typedimensionfees on - (panel.routetype=typedimensionfees.routetype and +panel.insurancereceiptdate,panel.notes + from panel left outer join typedimensionfees on + (panel.routetype=typedimensionfees.routetype and panel.paneldimension=typedimensionfees.paneldimension) left outer join insurance on (insurance.codedvalue=typedimensionfees.insurance) left outer join paneldimension on (paneldimension.codedvalue=panel.paneldimension) -left outer join routetype on (routetype.codedvalue=panel.routetype) left outer +left outer join routetype on (routetype.codedvalue=panel.routetype) left outer join facecount on (facecount.codedvalue=panel.facecount) ".$strWhere; */ $strQuery="select id,x,y,companyname,registerno,panelsubject,routetype,routename, @@ -109,7 +109,7 @@ routetype,dimension,facecount,insurance,usefees,receiptno,receiptdate, insurancereceiptdate,boolrow,registerno,insurancereceiptno,date,id,x,y"; //print_r($strQuery); -if ($Queryform->exportvalue('district')!=0){ +if ($Queryform->exportvalue('district')!='0'){ $strDistrict = $Queryform->exportvalue('district'); } else { $strDistrict = _('Unkown'); Modified: trunk/rapc/panelpage.php =================================================================== --- trunk/rapc/panelpage.php 2007-03-22 07:07:21 UTC (rev 60) +++ trunk/rapc/panelpage.php 2007-05-28 11:39:33 UTC (rev 61) @@ -40,10 +40,10 @@ if(isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { $Panelid = $_REQUEST['id']; } - + // print_r($_REQUEST); - - + + $options = &PEAR::getStaticProperty('DB_DataObject', 'options'); $config = parse_ini_file('conf/dataobject.ini', TRUE); $options = $config['DB_DataObject']; @@ -55,8 +55,8 @@ $options['database'] = 'pgsql://'.$_SESSION['UserName'].':'. $_SESSION['Password'].'@'.'localhost/'.$_SESSION['strDataBase']; - - + + /** * Handle actions that result in forwarding. */ @@ -76,8 +76,8 @@ $miny = $r[1]-25; $maxx = $r[0]+25; $maxy = $r[1]+25; - - + + header("location: map.php?PHPSESSID=".$_REQUEST["PHPSESSID"]. "&ViewRegion=Quick+". "View&minx=$minx&miny=$miny&maxx=$maxx&maxy=$maxy&imagewidth=400&". @@ -105,13 +105,13 @@ from panel where registerno='".$arg."'"; $objResult=pg_query($strQuery); $objResponse = new xajaxResponse(); - + if (pg_num_rows($objResult)!= 0) { $arrRow = pg_fetch_row($objResult); - + // Instantiate the xajaxResponse object - - + + // add a command to the response to assign the innerHTML attribute of // the element with id="SomeElementId" to whatever the new content is $objResponse->addAssign("companyname","value",$arrRow[0].''); @@ -122,14 +122,14 @@ $objResponse->addAssign("faxno","value",''.$arrRow[5].''); $objResponse->addAssign("pobox","value",''.$arrRow[6].''); //return the xajaxResponse object - + } return $objResponse; } $xajax->processRequests(); -$dccssPage->add('<head>'.$xajax->printJavascript("./include").'</head>'); - +$dccssPage->add('<head>'.$xajax->printJavascript("./include").'</head>'); + /** * \todo Link to map. */ @@ -145,14 +145,14 @@ if(isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { $objPanel->get('id', $_REQUEST['id']); $id = $objPanel->id; - + if ($id!=0){ $dccssPage->add(_('Panel #').'<b>'. $_REQUEST['id'].'</b><br>'); $dccssPage->add('<a href="Panelpage.php?PHPSESSID='.session_id(). '&action=map&id='.$objPanel->id.'">'. _('View on Map').'</a>'); - - } + + } } $objPanel->getXyFromRequest(); @@ -172,12 +172,45 @@ //$objPanelForm->addElement('file','uploaded_file','Your File:'); if(isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { + $arrPassedvalue=0; + if ($objPanel->paneldimension==1){ + $arrPassedvalue='14 * 4-50M1000P1'; + } + if ($objPanel->paneldimension==2){ + $arrPassedvalue='5 * 4-50M500P2'; + } +if ($objPanel->paneldimension==6){ + $arrPassedvalue='5 * 3-50M500P6'; + } $objPanelForm->setDefaults(array('paneltypedimension'=>array( - $objPanel->routetype,$objPanel->paneltype,$objPanel->paneldimension))); + $objPanel->routetype,$objPanel->paneltype,$arrPassedvalue))); + $objPanelForm->setDefaults(array('road_route_district' => array($objPanel->district, $objPanel->roadname,$objPanel->routename))); + $arrResetValues = array( 'panelcatagory','companyname','ownership', + 'nationalno', 'mothername', + 'address', 'teleno', 'faxno', + 'mobileno', 'pobox', 'panelsubject','road_route_district', + 'carrigewaywidth', 'shoulderwidth', 'numberoflanes', + 'medianwidth','date','x','y','routetodistance','paneltodistance', + 'routedirection','notesonlocation','nearstpanelx','nearstpanely', + 'lightavailable', + 'panelarea','annualfees','usefees','totalfees','agreedby','receiptno', + 'insurancereceiptno', + 'contractno','notes','permitno','registerno','contractunitprice', + 'verificationreceiptno','verificationreceiptdate','verificationamount','facecount'); + + foreach ($arrResetValues as $arrValue) { + $objPanel1 =& $objPanelForm->getElement($arrValue); + $objPanelForm->setdefaults(array($arrValue=>$objPanel->$arrValue)); + } + + + + + $_SESSION['routetypevalue']=$objPanel->routetype; - + } function move_file($data) { @@ -195,19 +228,20 @@ //print_r("<br>new name".$_SESSION['id'].".".$keywords[1]); $imageid=($_SESSION['id']+1); +//print_r("maher".$imageid); mkdir($_SESSION['imagedir'].$imageid, 0700); unset ($_SESSION['loadedimage']); if ($file->moveUploadedFile($_SESSION['imagedir'].$imageid."/",$imageid.".".$keywords[1])){ // $dccssPage->add(_('Image is loaded')); - $_SESSION['loadedimage']='c:/program files/mpwh/rapc/data/plugin/'.$imageid."/".$imageid.".".$keywords[1]; - - + $_SESSION['loadedimage']='c:/program files/rapc/data/plugin/'.$imageid."/".$imageid.".".$keywords[1]; + + //$imageloaded=true; } - + } } - + if($objPanelForm->validate()) { $objResult = $objPanelForm->process(array(&$objPanelBuilder, 'processForm'), false); @@ -218,31 +252,31 @@ $dccssPage->addMessage(_('Failed to save record(s).')); $dccssPage->addMessage($objResult->getMessage()); - + } else { - + $objPanel->insertdate=''.date("Y-m-d h:m:s").''; $objPanel->username=''.$_SESSION['UserName'].''; - + $dccssPage->addMessage(_('Image is loaded')); $objPanel->image=''.$_SESSION['loadedimage'].''; - + $dccssPage->add(_('Panel #').'<b> '.$objPanel->id .'</b><br>'); - + $objPanel->update(); - + $dccssPage->addMessage(_('Record(s) successfully saved.')); - + $dccssPage->add('<a href="Panelpage.php?PHPSESSID='.session_id(). '&action=map&id='.$objPanel->id.'">'. _('View on Map').'</a>'); $dccssPage->add('<br><a href="Panelpage.php?PHPSESSID='.session_id(). - '&type=new">'. _('New Data Entry').'</a>'); + '&type=new">'. _('New Data Entry').'</a>'); $arrResetValues = array( 'panelcatagory','companyname','ownership', 'nationalno', 'mothername', 'address', 'teleno', 'faxno', - 'mobileno', 'pobox', 'panelsubject','road_route_district', + 'mobileno', 'pobox', 'panelsubject','road_route_district', 'carrigewaywidth', 'shoulderwidth', 'numberoflanes', 'medianwidth','date','x','y','routetodistance','paneltodistance', 'routedirection','notesonlocation','nearstpanelx','nearstpanely', @@ -251,15 +285,15 @@ 'insurancereceiptno', 'contractno','notes','permitno','registerno','contractunitprice', 'verificationreceiptno','verificationreceiptdate','verificationamount'); - + foreach ($arrResetValues as $arrValue) { $objPanel1 =& $objPanelForm->getElement($arrValue); $objPanel1->setValue(''); $_SESSION['id']=$objPanel->id; } - + } -} +} $objStatic =& new HTML_QuickForm_static(); @@ -280,7 +314,7 @@ $objStatic =& new HTML_QuickForm_static(); $objStatic->setText('</td></tr></table>'); $objPanelForm->addElement($objStatic); - + //print_r($_POST); $strHtml = $objPanelForm->toHTML(); $dccssPage->add($strHtml); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-06-11 11:16:28
|
Revision: 62 http://svn.sourceforge.net/rapc/?rev=62&view=rev Author: maher_karim Date: 2007-06-11 04:16:22 -0700 (Mon, 11 Jun 2007) Log Message: ----------- 2007-06-11 Maher Abdel karim <mah...@do...> * locale/LC_MESSAGES/ar: * locale/LC_MESSAGES/en:update translation * doc/user/en/rapc_user_guide.xml:update documentation Modified Paths: -------------- trunk/rapc/changelog trunk/rapc/doc/user/en/rapc_user_guide.xml trunk/rapc/doc/user/en/toc.hhc trunk/rapc/locale/ar/LC_MESSAGES/rapc.po trunk/rapc/locale/en/LC_MESSAGES/rapc.po Modified: trunk/rapc/changelog =================================================================== --- trunk/rapc/changelog 2007-05-28 11:39:33 UTC (rev 61) +++ trunk/rapc/changelog 2007-06-11 11:16:22 UTC (rev 62) @@ -1,3 +1,9 @@ +2007-06-11 Maher Abdel karim <mah...@do...> + + * locale/LC_MESSAGES/ar: + * locale/LC_MESSAGES/en:update translation + * doc/user/en/rapc_user_guide.xml:update documentation + 2007-05-28 Maher Abdel karim <mah...@do...> * panelinstallation_report.php:fixed district value Modified: trunk/rapc/doc/user/en/rapc_user_guide.xml =================================================================== --- trunk/rapc/doc/user/en/rapc_user_guide.xml 2007-05-28 11:39:33 UTC (rev 61) +++ trunk/rapc/doc/user/en/rapc_user_guide.xml 2007-06-11 11:16:22 UTC (rev 62) @@ -30,7 +30,7 @@ <title>Introduction</title> <para>This document describes how to use the Road Advertisement Panel Control - (RAPC) application version 0.0.1.</para> + (RAPC) application version 0.5.0.</para> <para>RAPC is a web-based application that allows to record and analyze detailed Advertisement Panel information.</para> @@ -535,7 +535,7 @@ <listitem> <para>The RAPC version. The version number can be found in the top line of the application, along with the main menu link. - Example: RAPC 0.5.0</para> + Example: RAPC 0.0.1</para> </listitem> <listitem> Modified: trunk/rapc/doc/user/en/toc.hhc =================================================================== --- trunk/rapc/doc/user/en/toc.hhc 2007-05-28 11:39:33 UTC (rev 61) +++ trunk/rapc/doc/user/en/toc.hhc 2007-06-11 11:16:22 UTC (rev 62) @@ -16,8 +16,8 @@ <param name="Name" value="What's New?"> <param name="Local" value="news.html"> </OBJECT><UL><LI> <OBJECT type="text/sitemap"> - <param name="Name" value="Version 0.0.1"> - <param name="Local" value="news_0_0_1.html"> + <param name="Name" value="Version 0.5.0"> + <param name="Local" value="news_0_5_0.html"> </OBJECT></UL></UL><LI> <OBJECT type="text/sitemap"> <param name="Name" value="Requirements"> <param name="Local" value="requirements.html"> Modified: trunk/rapc/locale/ar/LC_MESSAGES/rapc.po =================================================================== --- trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-05-28 11:39:33 UTC (rev 61) +++ trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-06-11 11:16:22 UTC (rev 62) @@ -2,8 +2,8 @@ msgstr "" "Project-Id-Version: mpwh\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2007-03-18 11:22+0200\n" -"Last-Translator: t <t>\n" +"PO-Revision-Date: 2007-06-11 11:38+0200\n" +"Last-Translator: Maher_Karim <Mah...@do...>\n" "Language-Team: dc <mah...@do...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" Modified: trunk/rapc/locale/en/LC_MESSAGES/rapc.po =================================================================== --- trunk/rapc/locale/en/LC_MESSAGES/rapc.po 2007-05-28 11:39:33 UTC (rev 61) +++ trunk/rapc/locale/en/LC_MESSAGES/rapc.po 2007-06-11 11:16:22 UTC (rev 62) @@ -2,8 +2,8 @@ msgstr "" "Project-Id-Version: rapc\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2006-11-21 18:42+0200\n" -"Last-Translator: Steffen Macke <Ste...@do...>\n" +"PO-Revision-Date: 2007-06-11 11:38+0200\n" +"Last-Translator: Maher_Karim <Mah...@do...>\n" "Language-Team: DC <mah...@do...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-07-23 10:46:12
|
Revision: 63 http://svn.sourceforge.net/rapc/?rev=63&view=rev Author: maher_karim Date: 2007-07-23 03:46:10 -0700 (Mon, 23 Jul 2007) Log Message: ----------- 2007-07-23 Maher Abdel karim <mah...@do...> * locale/LC_MESSAGES/ar: * locale/LC_MESSAGES/en:update translation * map.php * include/dcmmaputil.php:add more layers to be displayed in TOC * etc/fonts.txt: * etc/symbols.sym:add more symbols. Modified Paths: -------------- trunk/rapc/changelog trunk/rapc/etc/fonts.txt trunk/rapc/etc/symbols.sym trunk/rapc/include/dcmmaputil.php trunk/rapc/locale/ar/LC_MESSAGES/rapc.po trunk/rapc/map.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mah...@us...> - 2007-07-23 10:46:17
|
Revision: 63 http://svn.sourceforge.net/rapc/?rev=63&view=rev Author: maher_karim Date: 2007-07-23 03:46:10 -0700 (Mon, 23 Jul 2007) Log Message: ----------- 2007-07-23 Maher Abdel karim <mah...@do...> * locale/LC_MESSAGES/ar: * locale/LC_MESSAGES/en:update translation * map.php * include/dcmmaputil.php:add more layers to be displayed in TOC * etc/fonts.txt: * etc/symbols.sym:add more symbols. Modified Paths: -------------- trunk/rapc/changelog trunk/rapc/etc/fonts.txt trunk/rapc/etc/symbols.sym trunk/rapc/include/dcmmaputil.php trunk/rapc/locale/ar/LC_MESSAGES/rapc.po trunk/rapc/map.php Modified: trunk/rapc/changelog =================================================================== --- trunk/rapc/changelog 2007-06-11 11:16:22 UTC (rev 62) +++ trunk/rapc/changelog 2007-07-23 10:46:10 UTC (rev 63) @@ -1,3 +1,14 @@ +2007-07-23 Maher Abdel karim <mah...@do...> + + * locale/LC_MESSAGES/ar: + * locale/LC_MESSAGES/en:update translation + * map.php + * include/dcmmaputil.php:add more layers to be displayed + in TOC + * etc/fonts.txt: + * etc/symbols.sym:add more symbols. + + 2007-06-11 Maher Abdel karim <mah...@do...> * locale/LC_MESSAGES/ar: Modified: trunk/rapc/etc/fonts.txt =================================================================== --- trunk/rapc/etc/fonts.txt 2007-06-11 11:16:22 UTC (rev 62) +++ trunk/rapc/etc/fonts.txt 2007-07-23 10:46:10 UTC (rev 63) @@ -2,3 +2,10 @@ esri_0 c:/windows/fonts/esri_0.ttf marvosym c:/windows/fonts/marvosym.ttf civil c:/windows/fonts/civil.ttf +IGL c:/windows/fonts/esri_220.ttf +signs c:/windows/fonts/esri_48.ttf +arcpad c:/windows/fonts/esri_30s.ttf +trans c:/windows/fonts/esri_9.ttf +signs2 c:/windows/fonts/esri_49.ttf +nima1 c:/windows/fonts/esri_17.ttf +nima2 c:/windows/fonts/esri_16.ttf Modified: trunk/rapc/etc/symbols.sym =================================================================== --- trunk/rapc/etc/symbols.sym 2007-06-11 11:16:22 UTC (rev 62) +++ trunk/rapc/etc/symbols.sym 2007-07-23 10:46:10 UTC (rev 63) @@ -41,5 +41,51 @@ NAME 'aoihatch' TYPE HATCH END +symbol + name "dots" + type ELLIPSE + filled true + points + 1 1 + end +end +symbol +name "boundary" +type ELLIPSE +filled true +points +1 1 +end +style +10 10 +end +end +symbol +name "bridge" +type truetype +font nima2 +CHARACTER "5" +antialias true +gap 10 +end + +symbol +name "sign" +type truetype +font signs +CHARACTER "L" +antialias true +gap 10 +end + +symbol +name "sign2" +type truetype +font signs +CHARACTER " " +antialias true +gap 10 +end + Modified: trunk/rapc/include/dcmmaputil.php =================================================================== --- trunk/rapc/include/dcmmaputil.php 2007-06-11 11:16:22 UTC (rev 62) +++ trunk/rapc/include/dcmmaputil.php 2007-07-23 10:46:10 UTC (rev 63) @@ -51,7 +51,8 @@ */ function showLayers($gpoMap, $HTTP_FORM_VARS) { if (sizeof($HTTP_FORM_VARS) >= 2) { - $arrLayers = array("Msroads","Villages","Adminsub"); + $arrLayers = array("Road_ln","Road_nd","Transport","road_thr","maint_station","bridge", + "traffic_light","humps","Panel"); foreach($arrLayers as $strLayer) { $poLayer = $gpoMap->getlayerbyname($strLayer); if(array_key_exists($strLayer, $HTTP_FORM_VARS) && @@ -154,11 +155,11 @@ * Editing tool for delivery points. //here - - - - - + + + + + /** * Table to display the results from a queried layer */ @@ -314,15 +315,15 @@ if($this->strAction == "movePoint") { $strImage = "icon_landmark.png"; } - + $strHtml = "<img src=\"images/$strImage\" width=\"24\" ". "height=\"24\" border=\"0\" alt=\""._('Panel2')."\" /></td><td>"; $strHtml = $strHtml.parent::toHtml()._('Panel')." "; - + if($this->intSelectedID != NULL) { //print_r($this->$strPointID."m"); if($this->boolPointEditor) { - + if($this->strAction == "movePoint") { // print_r('maher222222222222222222222222222222'); if($this->intX != NULL) { @@ -363,7 +364,7 @@ "&id=".$this->intSelectedID."\">". _("Move")."</a> ]"; } - + } else { //print_r('Hello'); $strHtml = $strHtml."<a href=\"panelpage.php?action=view&PHPSESSID=". Modified: trunk/rapc/locale/ar/LC_MESSAGES/rapc.po =================================================================== --- trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-06-11 11:16:22 UTC (rev 62) +++ trunk/rapc/locale/ar/LC_MESSAGES/rapc.po 2007-07-23 10:46:10 UTC (rev 63) @@ -2,8 +2,8 @@ msgstr "" "Project-Id-Version: mpwh\n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2007-06-11 11:38+0200\n" -"Last-Translator: Maher_Karim <Mah...@do...>\n" +"PO-Revision-Date: 2007-07-23 13:53+0300\n" +"Last-Translator: \n" "Language-Team: dc <mah...@do...>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" @@ -110,7 +110,7 @@ msgstr "اظهار على الخريطة" #: ../../../address_confirmation.php:105 -#: ../../../map.php:731 +#: ../../../map.php:831 msgid "Print map" msgstr "طباعة الخريطة" @@ -255,6 +255,8 @@ msgstr "رقم الوصل المالي" #: ../../../detailed_panelinstallation_report.php:110 +#: ../../../illegal_panelinstallation_report.php:130 +#: ../../../illegal_panelinstallation_report.php:131 #: ../../../panelinstallation_report.php:129 #: ../../../panelinstallation_report.php:130 #: ../../../print.php:65 @@ -350,6 +352,20 @@ msgid "Illegal panel list from:" msgstr "قائمة اللوحات المخالفة من:" +#: ../../../illegal_panelinstallation_report.php:128 +#: ../../../panelinstallation_report.php:127 +msgid "Responsible Engineer" +msgstr "المهندس المسؤول:" + +#: ../../../illegal_panelinstallation_report.php:130 +#: ../../../panelinstallation_report.php:129 +msgid "Public Works Office for:" +msgstr "مكتب اشغال محافظة:" + +#: ../../../illegal_panelinstallation_report.php:130 +msgid "district" +msgstr "المحافظة" + #: ../../../index.php:26 msgid "Ministry of Public works and Housing" msgstr "وزارة الاشغال العامة و الاسكان" @@ -379,8 +395,7 @@ msgstr "اضغط على الرابط للمشاهدة على الخريطة" #: ../../../index.php:58 -#: ../../../mainpage.php:239 -#: ../../../panelpage.php:241 +#: ../../../panelpage.php:275 msgid "New Data Entry" msgstr "ادخال معلومات لوحة جديدة" @@ -506,182 +521,196 @@ msgid "Login" msgstr "دخول" -#: ../../../mainpage.php:38 -msgid "Accident Black Spot" -msgstr "" - -#: ../../../mainpage.php:91 -#: ../../../panelpage.php:91 -msgid "FATAL ERROR: No id provided in request." -msgstr "" - -#: ../../../mainpage.php:148 -#: ../../../panelpage.php:150 -#: ../../../panelpage.php:231 -msgid "Panel #" -msgstr "رقم اللوحة" - -#: ../../../mainpage.php:151 -#: ../../../mainpage.php:237 -#: ../../../panelpage.php:153 -#: ../../../panelpage.php:239 -msgid "View on Map" -msgstr "اظهار على الخريطة" - -#: ../../../mainpage.php:158 -#: ../../../panelpage.php:160 -msgid "Please refer to RIS information to complete road information." -msgstr "يرجى الرجوع الى نظام RIS لاستكمال معلومات الطريق و التأكد منها." - -#: ../../../mainpage.php:217 -#: ../../../panelpage.php:219 -msgid "Failed to save record(s)." -msgstr "لم يتم حفظ الشجلات." - -#: ../../../mainpage.php:226 -#: ../../../panelpage.php:228 -msgid "Image is loaded" -msgstr "تم تحميل الصورة" - -#: ../../../mainpage.php:233 -#: ../../../panelpage.php:235 -msgid "Record(s) successfully saved." -msgstr "تمت عملية حفظ السجلات بنجاح." - -#: ../../../map.php:214 +#: ../../../map.php:215 #, php-format msgid "Moving Point %s." msgstr "تحريك النقطة %s." -#: ../../../map.php:242 +#: ../../../map.php:243 msgid "Deleted Point." msgstr "حذف النقطة." -#: ../../../map.php:242 +#: ../../../map.php:243 msgid " " msgstr "" -#: ../../../map.php:242 +#: ../../../map.php:243 msgid "PointID:" msgstr "رقم النقطة:" -#: ../../../map.php:242 +#: ../../../map.php:243 msgid "id" msgstr "رقم النقطة" -#: ../../../map.php:282 +#: ../../../map.php:270 msgid "NO geocode value returned" msgstr "" -#: ../../../map.php:302 +#: ../../../map.php:290 msgid "Moved Panel#." msgstr "تم تحريك النقطة #" -#: ../../../map.php:520 +#: ../../../map.php:508 msgid "Legend" msgstr "المفتاح" -#: ../../../map.php:542 -msgid "Display the Routes" +#: ../../../map.php:530 +msgid "Display the Road lines" msgstr "اظهار الطرق" -#: ../../../map.php:543 -msgid "Route" -msgstr "الطريق" +#: ../../../map.php:531 +msgid "Road Line" +msgstr "الطرق" -#: ../../../map.php:557 -msgid "Display the Villages" -msgstr "اظهار القرى" +#: ../../../map.php:546 +msgid "Display the Road through lines" +msgstr "اظهار الطرق النافذه" -#: ../../../map.php:558 -msgid "Villages" -msgstr "القرى" +#: ../../../map.php:547 +msgid "Road through Line" +msgstr "الطرق النافذه" -#: ../../../map.php:572 +#: ../../../map.php:561 +msgid "Display the maintenance station locations" +msgstr "اظهار محطات الصيانة" + +#: ../../../map.php:562 +msgid "Maintenance station locations" +msgstr "محطات الصيانة" + +#: ../../../map.php:577 +msgid "Display the bridge locations" +msgstr "اظهار مواقع الجسور" + +#: ../../../map.php:578 +msgid "Bridge locations" +msgstr "الجسور" + +#: ../../../map.php:593 +msgid "Display the Panel locations" +msgstr "اظهار اللوحات الاعلانية" + +#: ../../../map.php:594 +msgid "Panel locations" +msgstr "مواقع اللوحات الاعلانية" + +#: ../../../map.php:609 +msgid "Display the hump locations" +msgstr "اظهار مواقع المطبات" + +#: ../../../map.php:610 +msgid "hump locations" +msgstr "المطبات" + +#: ../../../map.php:626 +msgid "Display the traffic lights locations" +msgstr "اظهار مواقع الاشارات الضوئية" + +#: ../../../map.php:627 +msgid "Traffic light locations" +msgstr "الاشارات الضوئية" + +#: ../../../map.php:642 +msgid "Display the Road node" +msgstr "اظهار التقاطعات" + +#: ../../../map.php:643 +msgid "Road node" +msgstr "التقاطعات" + +#: ../../../map.php:657 +msgid "Display the Transport" +msgstr "اظهار خطوط النقل" + +#: ../../../map.php:658 +msgid "Transport roads" +msgstr "الخطوط الناقلة" + +#: ../../../map.php:672 msgid "Display the Administrative boundary" msgstr "اظهار الحدود الادارية" -#: ../../../map.php:573 +#: ../../../map.php:673 msgid "Administrative boundary" msgstr "الحدود الادارية" -#: ../../../map.php:583 +#: ../../../map.php:683 msgid "Landmark" msgstr "المعالم" -#: ../../../map.php:591 +#: ../../../map.php:691 msgid "Refresh the map display" msgstr "تحديث الخريطة" -#: ../../../map.php:592 +#: ../../../map.php:692 msgid "Redraw Map" msgstr "اعادة رسم الخريطة" -#: ../../../map.php:600 +#: ../../../map.php:700 msgid "Zoom to grid" msgstr "التكبير الى" -#: ../../../map.php:618 +#: ../../../map.php:718 msgid "Select the map size from the list." msgstr "اختيار ابعاد الخريطة من القائمة." -#: ../../../map.php:619 +#: ../../../map.php:719 msgid "Map Size" msgstr "حجم الخريطة" -#: ../../../map.php:645 +#: ../../../map.php:745 msgid "From Point:" msgstr "من النقطة:" -#: ../../../map.php:648 +#: ../../../map.php:748 msgid "To Point:" msgstr "الى النقطة:" -#: ../../../map.php:651 +#: ../../../map.php:751 msgid "Distance:" msgstr "المسافة بين النقطتين:" -#: ../../../map.php:654 +#: ../../../map.php:754 msgid "Find distance" msgstr "ايجاد المسافة" -#: ../../../map.php:674 +#: ../../../map.php:774 msgid "Keymap" msgstr "الخريطة العامة" -#: ../../../map.php:678 +#: ../../../map.php:778 msgid "Click on the key map to view an area." msgstr "اضغط على الخريطة العامة للتكبير الى منطقة." -#: ../../../map.php:689 +#: ../../../map.php:789 msgid "Zoom in further to display more detailed map information." msgstr "التكبير اكثر لاظهار تفاصيل اكثر." -#: ../../../map.php:691 +#: ../../../map.php:791 msgid "Zoom In" msgstr "تكبير" -#: ../../../map.php:699 +#: ../../../map.php:799 msgid "Zoom out to display a larger area of the map." msgstr "التصغير لاظهار تفاصيل اقل." -#: ../../../map.php:701 +#: ../../../map.php:801 msgid "Zoom Out" msgstr "تصغير" -#: ../../../map.php:709 +#: ../../../map.php:809 msgid "Move the map view without zooming in or out." msgstr "التنقل عبر الخريطة بدون تكبير او تصغير." -#: ../../../map.php:711 +#: ../../../map.php:811 msgid "Pan" msgstr "تحريك" -#: ../../../map.php:719 +#: ../../../map.php:819 msgid "Display information about elements in the map." msgstr "اظهار معلومات حول عناصر الخريطة." -#: ../../../map.php:721 +#: ../../../map.php:821 msgid "Identify" msgstr "تعريف" @@ -694,18 +723,40 @@ msgid "Unkown" msgstr "غير محدد" -#: ../../../panelinstallation_report.php:127 -msgid "Responsible Engineer" -msgstr "المهندس المسؤول:" - -#: ../../../panelinstallation_report.php:129 -msgid "Public Works Office for:" -msgstr "مكتب اشغال محافظة:" - #: ../../../panelpage.php:38 msgid "Road Advertisment Panel Control" msgstr "برنامج التحكم باللوحات الاعلانية على الطرق" +#: ../../../panelpage.php:91 +msgid "FATAL ERROR: No id provided in request." +msgstr "" + +#: ../../../panelpage.php:150 +#: ../../../panelpage.php:265 +msgid "Panel #" +msgstr "رقم اللوحة" + +#: ../../../panelpage.php:153 +#: ../../../panelpage.php:273 +msgid "View on Map" +msgstr "اظهار على الخريطة" + +#: ../../../panelpage.php:160 +msgid "Please refer to RIS information to complete road information." +msgstr "يرجى الرجوع الى نظام RIS لاستكمال معلومات الطريق و التأكد منها." + +#: ../../../panelpage.php:253 +msgid "Failed to save record(s)." +msgstr "لم يتم حفظ الشجلات." + +#: ../../../panelpage.php:262 +msgid "Image is loaded" +msgstr "تم تحميل الصورة" + +#: ../../../panelpage.php:269 +msgid "Record(s) successfully saved." +msgstr "تمت عملية حفظ السجلات بنجاح." + #: ../../../paneltypes_report.php:36 msgid "Panel types Report" msgstr "تقرير انواع اللوحات الاعلانية." @@ -1292,35 +1343,31 @@ msgid "Nothing was found at this location." msgstr "لم يتم ايجاد شيئ في هذا المكان" -#: ../../../include/dcmmaputil.php:319 +#: ../../../include/dcmmaputil.php:320 msgid "Panel2" msgstr "" -#: ../../../include/dcmmaputil.php:320 +#: ../../../include/dcmmaputil.php:321 msgid "Panel" msgstr "اللوحة" -#: ../../../include/dcmmaputil.php:338 +#: ../../../include/dcmmaputil.php:339 msgid "Accept Move" msgstr "قبول التحريك" -#: ../../../include/dcmmaputil.php:347 +#: ../../../include/dcmmaputil.php:348 msgid "Cancel Move" msgstr "الغاء التحريك" -#: ../../../include/dcmmaputil.php:355 +#: ../../../include/dcmmaputil.php:356 msgid "[Edit" msgstr "[تحرير" -#: ../../../include/dcmmaputil.php:364 +#: ../../../include/dcmmaputil.php:365 msgid "Move" msgstr "تحريك" -#: ../../../include/dcmmaputil.php:373 -msgid "Delete" -msgstr "حذف" - -#: ../../../include/dcmmaputil.php:379 +#: ../../../include/dcmmaputil.php:371 msgid "[View]" msgstr "[اظ\xD9\x87ار على الخريطة]" @@ -2166,7 +2213,7 @@ msgid "Description" msgstr "الوصف" -#: ../../../plugin/imageidentifyplugin.php:163 +#: ../../../plugin/imageidentifyplugin.php:166 msgid "A plug-in to display images of features selected by the identify tool." msgstr "" Modified: trunk/rapc/map.php =================================================================== --- trunk/rapc/map.php 2007-06-11 11:16:22 UTC (rev 62) +++ trunk/rapc/map.php 2007-07-23 10:46:10 UTC (rev 63) @@ -167,10 +167,10 @@ case "search": // $objLayer = $gpoMap->getlayerbyname($_POST[layer][0]); - $objLayer = $gpoMap->getlayerbyname('Msroads'); + $objLayer = $gpoMap->getlayerbyname('Road_ln'); // print_r(str_replace(" ","+",$_REQUEST['searchvalue'])); - if ($objLayer->queryByAttributes('ROUTENAME',str_replace(" ","+",$_REQUEST['searchvalue']),MS_SINGLE) ==MS_SUCCESS) { + if ($objLayer->queryByAttributes('ROUTE_NAME',str_replace(" ","+",$_REQUEST['searchvalue']),MS_SINGLE) ==MS_SUCCESS) { $ResultCount=$objLayer->getNumResults(); @@ -518,8 +518,8 @@ <tr> <td> <input type="checkbox" - name="Msroads" value="Y"<?php - if(GMapGetStatus("Msroads") == 1) { + name="Road_ln" value="Y"<?php + if(GMapGetStatus("Road_ln") == 1) { echo(" checked=\"CHECKED\""); } ?> /> @@ -527,14 +527,111 @@ <td><img src="images/water_network.png" width="20" height="15"></td> <td> - <a name="#routes" title="<?= _("Display the Routes")?>"> - <?= _("Route") ?></a></td> + <a name="#routes" title="<?= _("Display the Road lines")?>"> + <?= _("Road Line") ?></a></td> </tr> + + <tr> + <td> + <input type="checkbox" + name="road_thr" value="Y"<?php + if(GMapGetStatus("road_thr") == 1) { + echo(" checked=\"CHECKED\""); + } + ?> /> + </td> + <td><img src="images/water_network.png" + width="20" height="15"></td> + <td> + <a name="#routes" title="<?= _("Display the Road through lines")?>"> + <?= _("Road through Line") ?></a></td> + </tr> + <tr> + <td> + <input type="checkbox" + name="maint_station" value="Y"<?php + if(GMapGetStatus("maint_station") == 1) { + echo(" checked=\"CHECKED\""); + } + ?> /> + </td> + <td><img src="images/water_network.png" + width="20" height="15"></td> + <td> + <a name="#routes" title="<?= _("Display the maintenance station locations")?>"> + <?= _("Maintenance station locations") ?></a></td> + </tr> + +<tr> +<td> +<input type="checkbox" +name="bridge" value="Y"<?php +if(GMapGetStatus("bridge") == 1) { +echo(" checked=\"CHECKED\""); +} +?> /> +</td> +<td><img src="images/water_network.png" +width="20" height="15"></td> +<td> +<a name="#routes" title="<?= _("Display the bridge locations")?>"> +<?= _("Bridge locations") ?></a></td> +</tr> + +<tr> +<td> +<input type="checkbox" +name="Panel" value="Y"<?php +if(GMapGetStatus("Panel") == 1) { +echo(" checked=\"CHECKED\""); +} +?> /> +</td> +<td><img src="images/water_network.png" +width="20" height="15"></td> +<td> +<a name="#routes" title="<?= _("Display the Panel locations")?>"> +<?= _("Panel locations") ?></a></td> +</tr> + +<tr> +<td> +<input type="checkbox" +name="humps" value="Y"<?php +if(GMapGetStatus("humps") == 1) { +echo(" checked=\"CHECKED\""); +} +?> /> +</td> +<td><img src="images/water_network.png" +width="20" height="15"></td> +<td> +<a name="#routes" title="<?= _("Display the hump locations")?>"> +<?= _("hump locations") ?></a></td> +</tr> + + +<tr> +<td> +<input type="checkbox" +name="traffic_light" value="Y"<?php +if(GMapGetStatus("traffic_light") == 1) { +echo(" checked=\"CHECKED\""); +} +?> /> +</td> +<td><img src="images/water_network.png" +width="20" height="15"></td> +<td> +<a name="#routes" title="<?= _("Display the traffic lights locations")?>"> +<?= _("Traffic light locations") ?></a></td> +</tr> + <tr> <td> <input type="checkbox" - name="Villages" value="Y"<?php - if(GMapGetStatus("Villages") == 1) { + name="Road_nd" value="Y"<?php + if(GMapGetStatus("Road_nd") == 1) { echo(" checked=\"CHECKED\""); } ?> /> @@ -542,14 +639,29 @@ <td><img src="images/water_network.png" width="20" height="15"></td> <td> - <a name="#routes" title="<?= _("Display the Villages")?>"> - <?= _("Villages") ?></a></td> - </tr> + <a name="#routes" title="<?= _("Display the Road node")?>"> + <?= _("Road node") ?></a></td> + </tr> + <tr> + <td> + <input type="checkbox" + name="Transport" value="Y"<?php + if(GMapGetStatus("Transport") == 1) { + echo(" checked=\"CHECKED\""); + } + ?> /> + </td> + <td><img src="images/water_network.png" + width="20" height="15"></td> + <td> + <a name="#routes" title="<?= _("Display the Transport")?>"> + <?= _("Transport roads") ?></a></td> + </tr> <tr> <td> <input type="checkbox" - name="Adminsub" value="Y"<?php - if(GMapGetStatus("Adminsub") == 1) { + name="Transport" value="Y"<?php + if(GMapGetStatus("Transport") == 1) { echo(" checked=\"CHECKED\""); } ?> /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |