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();
}
Esempio n. 2
0
 /**
  * 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
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();
}
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
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;
    ?>
          <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;
?>
$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 
Esempio n. 10
0
" >
        <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) {
 	    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;
?>
Esempio n. 12
0
 public function parseLeaveType($postArr)
 {
     $this->parent_LeaveType->setLeaveTypeName(CommonFunctions::escapeHtml($postArr['txtLeaveTypeName']));
     return $this->parent_LeaveType;
 }
	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);">
"><?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 
Esempio n. 15
0
 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;
 }
Esempio n. 16
0
 * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of
 * the GNU General Public License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program;
 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301, USA
 */
if (isset($_GET['message'])) {
    ?>
<var><?php 
    echo CommonFunctions::escapeHtml($_GET['message']);
    ?>
</var>
<?php 
}
?>
<h2><?php 
echo $lang_Leave_Leave_Holiday_Weeked_Title;
?>
<hr/></h2>

<script>
	function editSave() {
		document.frmDefineWeekends.submit();
	}
</script>
echo $lang_Time_WorkShifts;
?>
</h2></div>

    <?php 
if (isset($_GET['message']) && !empty($_GET['message'])) {
    $message = $_GET['message'];
    $messageType = CommonFunctions::getCssClassForMessage($message);
    $message = "lang_Time_Errors_" . $message;
    ?>
        <div class="messagebar">
            <span class="<?php 
    echo $messageType;
    ?>
"><?php 
    echo isset(${$message}) ? ${$message} : CommonFunctions::escapeHtml($_GET['message']);
    ?>
</span>
        </div>
    <?php 
}
?>

   <div class="actionbar">
        <div class="actionbuttons">
        	<?php 
$disabled = $rights['add'] ? '' : $disabledAttribute;
?>
            <input type="button" class="addbutton" <?php 
echo $disabled;
?>
Esempio n. 18
0
</div>
<script type="text/javascript">
<!--
    if (document.getElementById && document.createElement) {
 			initOctopus();
	}
 -->
</script>
<?php 
if (isset($_GET['message']) && !empty($_GET['message'])) {
    $expString = $_GET['message'];
    $expString = explode("_", $expString);
    $length = count($expString);
    $col_def = strtolower($expString[$length - 1]);
    $expString = 'lang_Time_Errors_' . $_GET['message'];
    $message = isset(${$expString}) ? ${$expString} : CommonFunctions::escapeHtml($_GET['message']);
    ?>
	<font class="<?php 
    echo $col_def;
    ?>
" size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<?php 
    echo $message;
    ?>
	</font>
<?php 
}
?>
<br/>
<div id="listOfShifts" >
  <form id="frmListOfShifts" name="frmListOfShifts" method="post" action="?timecode=Time&action=">
echo $lang_Leave_Leave_Type_Summary_Title;
?>
</h2></div>

    <?php 
$message = isset($_GET['message']) ? $_GET['message'] : null;
if (isset($message)) {
    $messageType = CommonFunctions::getCssClassForMessage($message);
    $messageStr = "lang_Leave_" . $message;
    ?>
        <div class="messagebar">
            <span class="<?php 
    echo $messageType;
    ?>
"><?php 
    echo isset(${$messageStr}) ? ${$messageStr} : CommonFunctions::escapeHtml($message);
    ?>
</span>
        </div>
    <?php 
}
?>

    <div class="actionbar">
        <div class="actionbuttons">
            <input type="button" class="addbutton" <?php 
echo $rights['add'] ? '' : $disabled;
?>
                name="btnAdd" id="btnAdd" onclick="actionAdd(); return false;"
                onmouseover="moverButton(this);" onmouseout="moutButton(this);"
                value="<?php 
Esempio n. 20
0
</div><div class="txtValue"><?php 
echo CommonFunctions::escapeHtml($application->getMobile());
?>
</div><br/>
        <div class="txtName"><?php 
echo $lang_Recruit_ApplicationForm_Email;
?>
</div><div class="txtValue"><?php 
echo CommonFunctions::escapeHtml($application->getEmail());
?>
</div><br/>
        <div class="txtName"><?php 
echo $lang_Recruit_ApplicationForm_Qualifications;
?>
</div><div class="txtBox"><pre style="font-family: Arial, Helvetica, sans-serif"><?php 
echo nl2br(wordwrap(trim(CommonFunctions::escapeHtml($application->getQualifications())), 65));
?>
</pre></div><br/>
        <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) {
Esempio n. 21
0
        $showStatus = true;
        $showOwner = true;
        $creatorLabel = $lang_Recruit_JobApplicationHistory_ScheduledBy;
    } else {
        $eventDateLabel = '';
        $showEventDate = false;
        $showStatus = false;
        $showOwner = false;
        $creatorLabel = $lang_Recruit_JobApplicationHistory_By;
    }
    $eventCount++;
    $createdBy = $event->getCreatorName();
    $createdDate = LocaleUtil::getInstance()->formatDateTime($event->getCreatedTime());
    $eventDate = LocaleUtil::getInstance()->formatDateTime($event->getEventTime());
    $owner = CommonFunctions::escapeHtml($event->getOwnerName());
    $notes = CommonFunctions::escapeHtml($event->getNotes());
    $formId = 'frmEvent' . $event->getId();
    ?>
        <div class="eventTitle"><?php 
    echo $title;
    ?>
</div></br>
        <form id="<?php 
    echo $formId;
    ?>
" name="<?php 
    echo $formId;
    ?>
"
            method="post" action="<?php 
    echo $editEventURL;
Esempio n. 22
0
/pictures/table_r1_c3.gif" width="13" height="12" border="0" alt=""></td>
                  <td width="11"><img src="../../themes/beyondT/pictures/spacer.gif" width="1" height="12" border="0" alt=""></td>
                </tr>
                <tr>
                  <td background="../../themes/<?php 
    echo $styleSheet;
    ?>
/pictures/table_r2_c1.gif"><img name="table_r2_c1" src="../../themes/beyondT/pictures/spacer.gif" width="1" height="1" border="0" alt=""></td>
                  <td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="">
    				 <tr>
 					  <td><?php 
    echo $lang_repview_ReportName;
    ?>
</td>
						<td ><input type="text"  name="txtRepName" value="<?php 
    echo isset($this->postArr['txtRepName']) ? CommonFunctions::escapeHtml($this->postArr['txtRepName']) : '';
    ?>
"  ></td>
					</tr>

                  </table></td>
                  <td background="../../themes/<?php 
    echo $styleSheet;
    ?>
/pictures/table_r2_c3.gif"><img name="table_r2_c3" src="../../themes/beyondT/pictures/spacer.gif" width="1" height="1" border="0" alt=""></td>
                  <td><img src="../../themes/beyondT/pictures/spacer.gif" width="1" height="1" border="0" alt=""></td>
                </tr>
                <tr>
                  <td><img name="table_r3_c1" src="../../themes/<?php 
    echo $styleSheet;
    ?>
    $reportId = $edit[0][0];
    $reportName = $edit[0][1];
    $editCriteriaChk = $this->popArr['editCriteriaChk'];
    $criteriaData = $this->popArr['editCriteriaData'];
    $disabled = 'disabled="disabled"';
} else {
    $heading = "{$lang_emprepinfo_heading} : {$lang_Common_Edit}";
    $new = true;
    $formAction .= '&amp;capturemode=addmode';
    $heading = "{$lang_emprepinfo_heading} : {$lang_Common_New}";
    $reportId = '';
    $reportName = '';
    $disabled = '';
}
// Post values
$reportName = isset($this->postArr['txtRepName']) ? CommonFunctions::escapeHtml($this->postArr['txtRepName']) : $reportName;
// TODO: This file has to be simplified (eg: combine add/update part) and cleaned up.
?>
<!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"/>
<script type="text/javascript" src="../../scripts/archive.js"></script>
<script src="../../scripts/time.js"></script>
<?php 
include ROOT_PATH . "/lib/common/calendar.php";
?>
<style type="text/css">

div.reportName {