当前位置: 首页>>代码示例>>PHP>>正文


PHP Utility::EncryptQueryString方法代码示例

本文整理汇总了PHP中Utility::EncryptQueryString方法的典型用法代码示例。如果您正苦于以下问题:PHP Utility::EncryptQueryString方法的具体用法?PHP Utility::EncryptQueryString怎么用?PHP Utility::EncryptQueryString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Utility的用法示例。


在下文中一共展示了Utility::EncryptQueryString方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: executeEdit

 public function executeEdit(sfWebRequest $request)
 {
     if ($this->getRequest()->getMethod() == sfRequest::POST) {
         //Create User and set object attributes
         $dosage = DosagePeer::retrieveByPk($this->getRequestParameter('id'));
         $dosage->setTitle($this->getRequestParameter('title'));
         //Save object to database
         if ($dosage->save()) {
             $this->getUser()->setFlash('SUCCESS_MESSAGE', Constant::RECORD_EDITED_SUCCESSFULLY);
             $this->redirect('Dosage/list');
         } else {
             $this->getUser()->setFlash('ERROR_MESSAGE', Constant::DB_ERROR);
             $this->redirect('Dosage/edit?id=' . Utility::EncryptQueryString($request->getParameter('id')));
         }
     } else {
         $this->dosage = DosagePeer::retrieveByPk(Utility::DecryptQueryString($request->getParameter('id')));
     }
 }
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:18,代码来源:actions.class.php

示例2: executeEdit

 public function executeEdit(sfWebRequest $request)
 {
     if ($this->getRequest()->getMethod() == sfRequest::POST) {
         $bed = WardBedPeer::retrieveByPk($this->getRequestParameter('id'));
         $bed->setWardId($this->getRequestParameter('ward_id'));
         $bed->setBed($this->getRequestParameter('bed'));
         $bed->setPrice($this->getRequestParameter('price'));
         if ($bed->save()) {
             $this->getUser()->setFlash('SUCCESS_MESSAGE', Constant::RECORD_EDITED_SUCCESSFULLY);
             $this->redirect('WardBed/list');
         } else {
             $this->getUser()->setFlash('ERROR_MESSAGE', Constant::DB_ERROR);
             $this->redirect('WardBed/edit?id=' . Utility::EncryptQueryString($request->getParameter('id')));
         }
     } else {
         $this->bed = WardBedPeer::retrieveByPk(Utility::DecryptQueryString($request->getParameter('id')));
     }
 }
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:18,代码来源:actions.class.php

示例3: executeEdit

 public function executeEdit(sfWebRequest $request)
 {
     if ($this->getRequest()->getMethod() == sfRequest::POST) {
         $pharma = PharmaPeer::retrieveByPk($this->getRequestParameter('id'));
         $pharma->setType($request->getParameter('type'));
         $pharma->setName($request->getParameter('name'));
         $pharma->setStrength($request->getParameter('strength'));
         $pharma->setPrice($request->getParameter('price'));
         $pharma->setCompany($request->getParameter('company'));
         if ($pharma->save()) {
             $this->getUser()->setFlash('SUCCESS_MESSAGE', Constant::RECORD_EDITED_SUCCESSFULLY);
             $this->redirect('Pharma/list');
         } else {
             $this->getUser()->setFlash('ERROR_MESSAGE', Constant::DB_ERROR);
             $this->redirect('Pharma/edit?id=' . Utility::EncryptQueryString($request->getParameter('id')));
         }
     } else {
         //$this->AllDataAvailable();
         $this->pharma = PharmaPeer::retrieveByPk(Utility::DecryptQueryString($request->getParameter('id')));
     }
 }
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:21,代码来源:actions.class.php

示例4: executeEdit

 public function executeEdit(sfWebRequest $request)
 {
     if ($this->getRequest()->getMethod() == sfRequest::POST) {
         //Create User and set object attributes
         $ward = WardPeer::retrieveByPk($this->getRequestParameter('id'));
         $ward->setTitle($this->getRequestParameter('title'));
         //$ward->setDescription($this->getRequestParameter('description'));
         //$ward->setStatus($this->getRequestParameter('status'));
         //Save object to database
         if ($ward->save()) {
             $this->getUser()->setFlash('SUCCESS_MESSAGE', Constant::RECORD_EDITED_SUCCESSFULLY);
             $this->redirect('Ward/list');
         } else {
             $this->getUser()->setFlash('ERROR_MESSAGE', Constant::DB_ERROR);
             $this->redirect('Ward/edit?id=' . Utility::EncryptQueryString($request->getParameter('id')));
         }
     } else {
         //$this->AllDataAvailable();
         $this->ward = WardPeer::retrieveByPk(Utility::DecryptQueryString($request->getParameter('id')));
     }
 }
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:21,代码来源:actions.class.php

示例5: executeEditDuty

 public function executeEditDuty(sfWebRequest $request)
 {
     if ($this->getRequest()->getMethod() == sfRequest::POST) {
         //Create User and set object attributes
         $duty = DutyRosterPeer::retrieveByPk($this->getRequestParameter('id'));
         $duty->setEmployeeId($this->getRequestParameter('employee_id'));
         $duty->setDutyPlaceId($this->getRequestParameter('duty_place_id'));
         $duty->setDutyDate($this->getRequestParameter('duty_date'));
         $duty->setFrom($this->getRequestParameter('from'));
         $duty->setTo($this->getRequestParameter('to'));
         $duty->setSubstituteId($this->getRequestParameter('substitute_id'));
         //Save object to database
         if ($duty->save()) {
             $this->getUser()->setFlash('SUCCESS_MESSAGE', Constant::RECORD_EDITED_SUCCESSFULLY);
             $this->redirect('FrontDesk/dutyRoster');
         } else {
             $this->getUser()->setFlash('ERROR_MESSAGE', Constant::DB_ERROR);
             $this->redirect('FrontDesk/editduty?id=' . Utility::EncryptQueryString($request->getParameter('id')));
         }
     } else {
         $this->duty = DutyRosterPeer::retrieveByPk(Utility::DecryptQueryString($request->getParameter('id')));
     }
 }
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:23,代码来源:actions.class.php

示例6: foreach

	 <!-- Populating the List -->
		
	  <?php 
if (count($patients)) {
    ?>
		<?php 
    foreach ($patients as $j => $patient) {
        ?>
		
		<tr>
		<td align="left"><?php 
        echo $patient->getId();
        ?>
 </td>
		<td align="left"><?php 
        echo link_to($patient->getName(), 'FrontDesk/visitAdd?patient=' . Utility::EncryptQueryString($patient->getId()));
        ?>
</td>
		<td style="text-align:left;"><?php 
        echo $patient->getCnic();
        ?>
</td>
		</tr>
	  
	   <?php 
    }
    ?>
	  <tr>
		<td class="last">&nbsp;</td>
	  </tr>
	   <?php 
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:searchPatientSuccess.php

示例7: link_to

        ?>
</td>
				<td align="center"><?php 
        echo $patient->getDob('d-M-Y');
        ?>
</td>
				<td align="center"><?php 
        echo $patient->getGender();
        ?>
				<td align="right">
				<?php 
        echo link_to('&nbsp;', 'Patient/edit?id=' . Utility::EncryptQueryString($patient->getId()), array('title' => 'Edit', 'class' => 'edit'));
        ?>
				
				<?php 
        echo link_to('&nbsp;', 'Patient/delete?id=' . Utility::EncryptQueryString($patient->getId()), array('confirm' => 'Are you sure you want to Delete this?', 'title' => 'Delete', 'class' => 'delete'));
        ?>
				</td>
              </tr>
			<?php 
    }
    ?>
		
			   
			
			<tr>
				<td>
					<?php 
    if ($pager->haveToPaginate()) {
        ?>
					<?php 
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:listSuccess.php

示例8: link_to

        ?>
</td>
		<td align="right" class="edit">
		<?php 
        $visit_status = Constant::GetVisitStatusTitle($visit->getStatus());
        $fee_status = Constant::GetVisitStatusTitle($visit->getFeePaid());
        if ($visit_status == Constant::VISIT_DONE_TITLE && $fee_status == Constant::VISIT_FEE_NOT_PAID_TITLE) {
            echo link_to('Pay Fee', 'FrontDesk/payVisitFee?visit=' . Utility::EncryptQueryString($visit->getId()), array('confirm' => 'Confirm Fee Payment!'));
        } elseif ($visit_status == Constant::VISIT_DONE_TITLE && $fee_status == Constant::VISIT_FEE_PAID_TITLE) {
            echo 'Fee Paid';
        } else {
            echo '';
        }
        ?>
		<?php 
        echo link_to('&nbsp;', 'FrontDesk/visitEdit?visit=' . Utility::EncryptQueryString($visit->getId()), array('title' => 'Edit', 'class' => 'edit'));
        ?>
		<?php 
        //echo link_to('&nbsp;','FrontDesk/deletevisit?id='.Utility::EncryptQueryString($visit->getId()), array('confirm'=>'Are you sure you want to Delete this?', 'title'=>'Delete', 'class' => 'delete'));
        ?>
		</td>
	  </tr>
	  
	   <?php 
    }
    ?>
	  <tr>
		<td class="last">&nbsp;</td>
	  </tr>
	   <?php 
} else {
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:visitListSuccess.php

示例9: foreach

				<th width="17%" style="text-align:left;">Last Updated</th>
                <th width="13%" style="text-align:left;">Operation</th>
              </tr>
			  
			 <!-- Populating the List -->
				
			  <?php 
if (count($lab_tests)) {
    ?>
				<?php 
    foreach ($lab_tests as $j => $lab_test) {
        ?>
				
              <tr>
                <td align="left"><?php 
        echo link_to($lab_test->getLabTest(), 'LabReport/add?report=' . Utility::EncryptQueryString($lab_test->getId()));
        ?>
 </td>
				<td align="left"><?php 
        echo $lab_test->getPatient();
        ?>
</td>
				<td align="center"><?php 
        echo $lab_test->getVisit();
        ?>
</td>
				<td align="center"><?php 
        echo $lab_test->getUpdatedAt('d-M-Y');
        ?>
				<td align="right">
				<?php 
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:listSuccess.php

示例10: link_to

            ?>
 </td>
				<td align="left"><?php 
            echo $report->getPatient();
            ?>
</td>
				<td align="center"><?php 
            echo $report->getVisit();
            ?>
</td>
				<td align="center"><?php 
            echo $report->getUpdatedAt('d-M-Y');
            ?>
				<td align="right">
				<?php 
            echo link_to('&nbsp;', 'LabReport/edit?report=' . Utility::EncryptQueryString($report->getId()), array('title' => 'Edit', 'class' => 'edit'));
            ?>
				
				<?php 
            //echo link_to('&nbsp;','LabTest/delete?id='.Utility::EncryptQueryString($lab_test->getId()), array('confirm'=>'Are you sure you want to Delete this?', 'title'=>'Delete', 'class' => 'delete'));
            ?>
				</td>
              </tr>
	  
	   <?php 
        }
        ?>
	  <tr>
		<td class="last">&nbsp;</td>
	  </tr>
	   <?php 
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:previousReportSuccess.php

示例11: link_to

<tr>
	<td colspan="4" height="40">&nbsp;</td>
</tr>


<tr class="datagrid">
	<th colspan="4">System Authentication Information</th>
</tr>


<tr class="datagrid">
	<td>Username:</td>
	<td>&nbsp;
	<?php 
if ($user != NULL) {
    echo $user->getUser();
} else {
    echo link_to('Assign Credintials', 'Employee/giveCredential?employee=' . Utility::EncryptQueryString($employee->getId()));
}
?>
 </td>
<td colspan="2">&nbsp;</td>
</tr>
</table>
			</div>
		</div>
	</div>
<div class="clear"></div>    
</div>
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:29,代码来源:detailSuccess.php

示例12: link_to

        ?>
</td>
		<td style="text-align:center;"><?php 
        echo $duty->getTo();
        ?>
</td>
		<td align="left"><?php 
        echo $duty->getEmployeeRelatedBySubstituteId();
        ?>
</td>
		<td align="right" class="edit">
		<?php 
        echo link_to('&nbsp;', 'FrontDesk/editDuty?id=' . Utility::EncryptQueryString($duty->getId()), array('title' => 'Edit', 'class' => 'edit'));
        ?>
		<?php 
        echo link_to('&nbsp;', 'FrontDesk/deleteDuty?id=' . Utility::EncryptQueryString($duty->getId()), array('confirm' => 'Are you sure you want to Delete this?', 'title' => 'Delete', 'class' => 'delete'));
        ?>
		</td>
	  </tr>
	  
	   <?php 
    }
    ?>
	  <tr>
		<td class="last">&nbsp;</td>
	  </tr>
	   <?php 
} else {
    ?>
	  
			<tr>
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:dutyRosterSuccess.php

示例13: foreach

		<th style="text-align:left;">Ward Doctor</th>
		<th style="text-align:left;">Operation</th>
	  </tr>
	  
	 <!-- Populating the List -->
		
	  <?php 
if (count($visits)) {
    ?>
		<?php 
    foreach ($visits as $j => $visit) {
        ?>
		
		<tr>
		<td align="left"><?php 
        echo link_to($visit->getPatient(), 'Visit/checkup?patient=' . Utility::EncryptQueryString($visit->getPatientId()) . '&visit=' . Utility::EncryptQueryString($visit->getId()));
        ?>
 </td>
		<td align="left"><?php 
        echo Utility::getAge($visit->getPatient()->getDob('Y-m-d'), date('Y-m-d'));
        ?>
 years</td>
		<td align="left"><?php 
        echo $visit->getPatient()->getGender();
        ?>
</td>
		<td style="text-align:center;"><?php 
        echo $visit->getTime();
        ?>
 hrs.</td>
		<td align="left"><?php 
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:docListSuccess.php

示例14: executeGiveCredential

 public function executeGiveCredential(sfWebRequest $request)
 {
     if ($request->isMethod('Post')) {
         $password = md5($this->getRequestParameter('password'));
         $user = new User();
         $user->setEmployeeId($this->getRequestParameter('employee_id'));
         $user->setUser($this->getRequestParameter('user_name'));
         $user->setPassword($password);
         $user->setRoleId($this->getRequestParameter('role_id'));
         $user->setStatus(Constant::RECORD_STATUS_ACTIVE);
         $user->save();
         $this->getUser()->setFlash('SUCCESS_MESSAGE', 'Credentials Assigned Successfully.');
         $this->redirect('Employee/detail?employee=' . Utility::EncryptQueryString($this->getRequestParameter('employee_id')));
     } else {
         $this->employee = EmployeePeer::retrieveByPk(Utility::DecryptQueryString($request->getParameter('employee')));
     }
 }
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:17,代码来源:actions.class.php


注:本文中的Utility::EncryptQueryString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。