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


PHP CommonFunctions::escapeHtml方法代码示例

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


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

示例1: fetchJobSpecInfo

function fetchJobSpecInfo($value)
{
    $lan = new Language();
    require $lan->getLangPath("full.php");
    $jobTitle = new JobTitle();
    $status = $jobTitle->getJobStatusFromTitle($value);
    $stat[] = array(0 => '', 1 => '0', 2 => "-- {$lang_hremp_selempstat} --");
    for ($i = 0; $i < count($status); $i++) {
        $stat[] = $status[$i];
    }
    $status = $stat;
    $view_controller = new ViewController();
    $response = new xajaxResponse();
    $xajaxFiller = new xajaxElementFiller();
    $objResponse = $xajaxFiller->cmbFillerById($response, $status, 1, 'frmEmp.empstatpp', 'cmbType');
    $jobSpec = $view_controller->getJobSpecForJob($value);
    if (empty($jobSpec)) {
        $jobSpecName = '';
        $jobSpecDuties = '';
    } else {
        $jobSpecName = CommonFunctions::escapeHtml($jobSpec->getName());
        $jobSpecDuties = nl2br(CommonFunctions::escapeHtml($jobSpec->getDuties()));
    }
    $response->addAssign('jobSpecName', 'innerHTML', $jobSpecName);
    $response->addAssign('jobSpecDuties', 'innerHTML', $jobSpecDuties);
    $response->addAssign('status', 'innerHTML', '');
    $response->addScript('reselectEmpStatus();');
    return $response->getXML();
}
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:29,代码来源:hrEmpMain.php

示例2: _parseCommonData

 /**
  * Parse common data for edit and update
  * @return JobTitle object
  */
 private function _parseCommonData($postArr)
 {
     $jobTitle = new JobTitle();
     $jobTitle->setJobName(CommonFunctions::escapeHtml(trim($postArr['txtJobTitleName'])));
     $jobTitle->setJobDesc(CommonFunctions::escapeHtml(trim($postArr['txtJobTitleDesc'])));
     $jobTitle->setJobComm(CommonFunctions::escapeHtml(trim($postArr['txtJobTitleComments'])));
     $jobTitle->setJobSalGrd(trim($postArr['cmbPayGrade']));
     $jobSpecId = trim($postArr['cmbJobSpecId']);
     if (CommonFunctions::isValidId($jobSpecId)) {
         $jobTitle->setJobSpecId($jobSpecId);
     }
     return $jobTitle;
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:17,代码来源:EXTRACTOR_JobTitle.php

示例3: parseData

 function parseData($postArr)
 {
     $arrGenInfo = array('COMPANY' => 'txtCompanyName', 'COUNTRY' => 'cmbCountry', 'STREET1' => 'txtStreet1', 'STREET2' => 'txtStreet2', 'STATE' => 'cmbState', 'CITY' => 'cmbCity', 'ZIP' => 'txtZIP', 'PHONE' => 'txtPhone', 'FAX' => 'txtFax', 'TAX' => 'txtTaxID', 'NAICS' => 'txtNAICS', 'COMMENTS' => 'txtComments');
     $genInfoKeys = implode('|', array_keys($arrGenInfo));
     $this->parent_geninfo->setGenInfoKeys($genInfoKeys);
     $arrGenInfoUI = array_values($arrGenInfo);
     for ($c = 0; count($arrGenInfo) > $c; $c++) {
         $arrGenInfoValues[$c] = $postArr[$arrGenInfoUI[$c]];
     }
     $arrGenInfoValues[0] = CommonFunctions::escapeHtml($arrGenInfoValues[0]);
     $genInfoValues = implode('|', $arrGenInfoValues);
     $this->parent_geninfo->setGenInfoValues($genInfoValues);
     return $this->parent_geninfo;
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:14,代码来源:EXTRACTOR_GenInfo.php

示例4: FormCreator

 function FormCreator($getArr, $postArr = null)
 {
     /**
      * Escape any html in GET variables, making them safer
      */
     foreach ($getArr as $key => $val) {
         if (is_string($val)) {
             $getArr[$key] = CommonFunctions::escapeHtml($val);
         }
     }
     $this->getArr = $getArr;
     if ($postArr != null) {
         $this->postArr = $postArr;
     }
     $this->popArr = array();
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:16,代码来源:FormCreator.php

示例5: fetchJobSpecInfo

function fetchJobSpecInfo($value)
{
    $view_controller = new ViewController();
    $response = new xajaxResponse();
    $jobSpec = $view_controller->getJobSpecForJob($value);
    if (empty($jobSpec)) {
        $jobSpecName = '';
        $jobSpecDuties = '';
    } else {
        $jobSpecName = CommonFunctions::escapeHtml($jobSpec->getName());
        $jobSpecDuties = nl2br(CommonFunctions::escapeHtml($jobSpec->getDuties()));
    }
    $response->addAssign('jobSpecName', 'innerHTML', $jobSpecName);
    $response->addAssign('jobSpecDuties', 'innerHTML', $jobSpecDuties);
    $response->addAssign('status', 'innerHTML', '');
    return $response->getXML();
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:17,代码来源:hrEmpMain.php

示例6: parseEditData

 function parseEditData($postArr)
 {
     if (isset($postArr['propId'])) {
         $this->compProperty->setEditPropIds($postArr['propId']);
     }
     if (isset($postArr['cmbUserEmpID'])) {
         $this->compProperty->setEditEmpIds($postArr['cmbUserEmpID']);
     }
     if (isset($postArr['id'])) {
         $this->compProperty->setEditPropIds($postArr['id']);
     }
     if (isset($postArr['txtPropertyName'])) {
         $this->compProperty->setPropName(CommonFunctions::escapeHtml($postArr['txtPropertyName']));
     }
     if (isset($postArr['capturemode']) == 'propedit') {
         $this->compProperty->setEditPropFlag(true);
     }
     return $this->compProperty;
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:19,代码来源:EXTRACTOR_CompProperty.php

示例7: foreach

if (empty($locationHistory)) {
    ?>
    <tr><td colspan="4"><?php 
    echo $lang_hremp_EmployeeHistoryNoItemsFound;
    ?>
</td></tr>
<?php 
}
?>
</tfoot>
<tbody>
<?php 
foreach ($locationHistory as $locItem) {
    $id = $locItem->getId();
    $code = $locItem->getCode();
    $name = CommonFunctions::escapeHtml($locItem->getName());
    $from = LocaleUtil::getInstance()->formatDate($locItem->getStartDate());
    $to = LocaleUtil::getInstance()->formatDate($locItem->getEndDate());
    ?>
    <tr id="locationHistoryRow<?php 
    echo $id;
    ?>
">
    <td width="10"><input type='checkbox' class='checkbox' name='chklocationHistory[]' value="<?php 
    echo $id;
    ?>
">
    </td>
    <td><?php 
    echo $name;
    ?>
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:hrempjobhistory.php

示例8:

          <table width="100%"  border="0" cellspacing="0" cellpadding="3">
            <tr>
              <td width="45%">&nbsp;</td>
              <td width="55%">&nbsp;</td>
            </tr>
            <tr>
              <td align="right" class="bodyTXT"><?php 
echo $lang_login_LoginName;
?>
 : </td>
              <td>
<?php 
if (isset($_POST['txtUserName'])) {
    ?>
              <input name="txtUserName" type="text" class="loginText" value="<?php 
    echo CommonFunctions::escapeHtml($_POST['txtUserName']);
    ?>
" tabindex="1"/>
<?php 
} else {
    ?>
              <input name="txtUserName" type="text" class="loginText" tabindex="1"/>
<?php 
}
?>
              </td>
            </tr>
            <tr>
              <td align="right" class="bodyTXT"><?php 
echo $lang_login_Password;
?>
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:31,代码来源:login.php

示例9:

$locationComments = '';
if (isset($this->getArr['capturemode']) && $this->getArr['capturemode'] == 'updatemode') {
    $formAction = "{$formAction}&amp;id={$this->getArr['id']}&amp;capturemode=updatemode";
    $new = false;
    $disabled = "disabled='disabled'";
    $editData = $this->popArr['editArr'];
    $locationCode = CommonFunctions::escapeHtml($editData[0][0]);
    $locationName = CommonFunctions::escapeHtml($editData[0][1]);
    $locationCountry = CommonFunctions::escapeHtml($editData[0][2]);
    $locationState = CommonFunctions::escapeHtml($editData[0][3]);
    $locationCity = CommonFunctions::escapeHtml($editData[0][4]);
    $locationAddress = CommonFunctions::escapeHtml($editData[0][5]);
    $locationZip = CommonFunctions::escapeHtml($editData[0][6]);
    $locationPhone = CommonFunctions::escapeHtml($editData[0][7]);
    $locationFax = CommonFunctions::escapeHtml($editData[0][8]);
    $locationComments = CommonFunctions::escapeHtml($editData[0][9]);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<?php 
$objAjax->printJavascript();
?>
<script type="text/javascript" src="../../scripts/archive.js"></script>
<script type="text/javascript">
//<![CDATA[

    var editMode = <?php 
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:31,代码来源:locations.php

示例10:

" >
        <div class="txtName"><?php 
echo $lang_Recruit_JobApplicationConfirm_ApplicantName;
?>
</div>
        <div class="txtValue">
            <?php 
echo CommonFunctions::escapeHtml($application->getFirstName() . ' ' . $application->getLastName());
?>
        </div><br/>
  		<div class="txtName"><?php 
echo $lang_Recruit_JobApplicationConfirm_Position;
?>
</div>
        <div class="txtValue"><?php 
echo CommonFunctions::escapeHtml($application->getJobTitleName());
?>
</div><br/>

        <div class="txtName"><?php 
echo $lang_Recruit_JobApplicationDetails_Status;
?>
</div>
        <div class="txtValue" style="white-space:nowrap;">
            <?php 
$status = $statusList[$application->getStatus()];
$statusDate = '';
$latestEvent = $application->getLatestEvent();
if (!empty($latestEvent)) {
    if ($latestEvent->getEventType() == JobApplicationEvent::EVENT_SCHEDULE_FIRST_INTERVIEW || $latestEvent->getEventType() == JobApplicationEvent::EVENT_SCHEDULE_SECOND_INTERVIEW) {
        if ($latestEvent->getStatus() != JobApplicationEvent::STATUS_INTERVIEW_FINISHED) {
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:confirmAction.php

示例11:

 	    width:15em; /* set width here */
 	    padding-bottom:2em;
 	}

 	#employeeSearchAC {
 	    z-index:9000; /* z-index needed on top instance for ie & sf absolute inside relative issue */
 	}
    -->
</style>
<?php 
include ROOT_PATH . "/lib/common/autocomplete.php";
?>
</head>
<?php 
$applicantName = $application->getFirstName() . ' ' . $application->getLastName();
$heading = $lang_Recruit_JobApplication_SeekApproval_Heading . ' ' . CommonFunctions::escapeHtml($applicantName);
?>
<body class="yui-skin-sam">
    <div class="formpage">
        <div class="navigation">
	    	<input type="button" class="savebutton"
		        onclick="goBack();" onmouseover="moverButton(this);" onmouseout="moutButton(this);"
		        value="<?php 
echo $lang_Common_Back;
?>
" />
        </div>
        <div class="outerbox">
            <div class="mainHeading"><h2><?php 
echo $heading;
?>
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:31,代码来源:seekApproval.php

示例12: parseLeaveType

 public function parseLeaveType($postArr)
 {
     $this->parent_LeaveType->setLeaveTypeName(CommonFunctions::escapeHtml($postArr['txtLeaveTypeName']));
     return $this->parent_LeaveType;
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:5,代码来源:EXTRACTOR_LeaveType.php

示例13: nl2br

	margin-left:10px;
}

#jobSpecDuties {
	width:400px;
}
</style>
<?php 
$edit1 = $this->popArr['editJobInfoArr'];
$jobSpec = $this->popArr['jobSpec'];
if (empty($jobSpec)) {
    $jobSpecName = '';
    $jobSpecDuties = '';
} else {
    $jobSpecName = CommonFunctions::escapeHtml($jobSpec->getName());
    $jobSpecDuties = nl2br(CommonFunctions::escapeHtml($jobSpec->getDuties()));
}
if (isset($this->getArr['capturemode']) && $this->getArr['capturemode'] == 'updatemode') {
    $disabled = isset($this->postArr['EditMode']) && $this->postArr['EditMode'] == '1' ? '' : 'disabled="disabled"';
    ?>
<div id="jobDetails" onclick="setUpdate(2)" onkeypress="setUpdate(2)">
	<label for="cmbJobTitle"><?php 
    echo $lang_hremp_jobtitle;
    ?>
</label>
	<?php 
    ?>
	<select name="cmbJobTitle" id="cmbJobTitle" class="formSelect" <?php 
    echo $disabled;
    ?>
 onchange="onJobTitleChange(this.value);">
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:31,代码来源:hrempjob.php

示例14:

"><?php 
        echo CommonFunctions::escapeHtml($applicantName);
        ?>
</td>
            <td class="<?php 
        echo $cssClass;
        ?>
"><?php 
        echo CommonFunctions::escapeHtml($app->getJobTitleName());
        ?>
</td>
            <td class="<?php 
        echo $cssClass;
        ?>
"><?php 
        echo CommonFunctions::escapeHtml($app->getHiringManagerName());
        ?>
</td>
            <td class="<?php 
        echo $cssClass;
        ?>
"><?php 
        echo $status;
        ?>

            </td>
            <td class="<?php 
        echo $cssClass;
        ?>
">
            <?php 
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:31,代码来源:applicationList.php

示例15: parseEditData

 function parseEditData($postArr)
 {
     $this->empreport->setRepID(trim($postArr['txtRepID']));
     $this->empreport->setRepName(CommonFunctions::escapeHtml(trim($postArr['txtRepName'])));
     $criteriaArr = $postArr['chkcriteria'];
     $criteriaStr = '';
     if (in_array('EMPNO', $criteriaArr)) {
         $criteriaStr .= 'EMPNO=' . $postArr['txtRepEmpID'];
     }
     if (in_array('AGE', $criteriaArr)) {
         switch ($postArr['cmbAgeCode']) {
             case '<':
                 $criteriaStr .= '|AGE=<=' . $postArr['txtEmpAge1'];
                 break;
             case '>':
                 $criteriaStr .= '|AGE=>=' . $postArr['txtEmpAge1'];
                 break;
             case 'range':
                 $criteriaStr .= '|AGE=range=' . $postArr['txtEmpAge1'] . '=' . $postArr['txtEmpAge2'];
         }
     }
     if (in_array('PAYGRD', $criteriaArr)) {
         $criteriaStr .= '|PAYGRD=' . $postArr['cmbSalGrd'];
     }
     if (in_array('QUL', $criteriaArr)) {
         $criteriaStr .= '|QUL=' . $postArr['TypeCode'];
     }
     if (in_array('EMPSTATUS', $criteriaArr)) {
         $criteriaStr .= '|EMPSTATUS=' . $postArr['cmbEmpType'];
     }
     if (in_array('SERPIR', $criteriaArr)) {
         switch ($postArr['cmbSerPerCode']) {
             case '<':
                 $criteriaStr .= '|SERPIR=<=' . $postArr['Service1'];
                 break;
             case '>':
                 $criteriaStr .= '|SERPIR=>=' . $postArr['Service1'];
                 break;
             case 'range':
                 $criteriaStr .= '|SERPIR=range=' . $postArr['Service1'] . '=' . $postArr['Service2'];
         }
     }
     // Joined Date
     if (in_array('JOIDAT', $criteriaArr)) {
         switch ($postArr['cmbJoiDatCode']) {
             case '<':
                 $criteriaStr .= '|JOIDAT=<=' . LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['Join1']);
                 break;
             case '>':
                 $criteriaStr .= '|JOIDAT=>=' . LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['Join1']);
                 break;
             case 'range':
                 $criteriaStr .= '|JOIDAT=range=' . LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['Join1']) . '=' . LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['Join2']);
         }
     }
     // Joined Date Ends
     if (in_array('JOBTITLE', $criteriaArr)) {
         $criteriaStr .= '|JOBTITLE=' . $postArr['cmbDesig'];
     }
     if (in_array('LANGUAGE', $criteriaArr)) {
         $criteriaStr .= '|LANGUAGE=' . $postArr['cmbLanguage'];
     }
     if (in_array('SKILL', $criteriaArr)) {
         $criteriaStr .= '|SKILL=' . $postArr['cmbSkill'];
     }
     $this->empreport->setRepCriteriaDefString($criteriaStr);
     $field = $postArr['checkfield'];
     $fieldStr = '';
     for ($c = 0; count($field) > $c; $c++) {
         if ($c == count($field) - 1) {
             $fieldStr = $fieldStr . $field[$c];
         } else {
             $fieldStr = $fieldStr . $field[$c] . '|';
         }
     }
     $this->empreport->setRepFieldDefString($fieldStr);
     return $this->empreport;
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:78,代码来源:EXTRACTOR_EmpReport.php


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