Exemplo n.º 1
0
// programmer:	Jafarkhani
// create Date:	88.12
//---------------------------
require_once '../header.inc.php';
require_once 'post.data.php';
require_once '../org_units/unit.class.php';
require_once inc_dataReader;
$post_id = !empty($_GET["post_id"]) ? $_GET["post_id"] : "";
$obj = new manage_posts($post_id);
$drp_job_field = manage_domains::DRP_JobFields("jfid", $obj->jfid, "---", "428");
//$drp_units = manage_units::DRP_Units("ouid", $obj->ouid, "---", "428");
$drp_person_type = manage_domains::DRP_PersonType("person_type", $obj->person_type, "", " ");
$event = "onchange='postChange();'";
$drp_post_type = manage_posts::dropdown_post_type("post_type", $obj->post_type, "", "", $event);
$drp_kind_super = manage_posts::dropdown_sup_type("SupervisionKind", $obj->SupervisionKind, "-");
$DRP_jcid_jfid = manage_domains::DRP_jcid_jfid("newPostForm", $jcid, $jfid, "jcid", "jfid", $obj->_jcid, $obj->jfid);
?>
<script type="text/javascript" src="/HumanResources/global/LOV/LOV.js"></script>
<script>
new Ext.form.SHDateField({id: 'validity_start',applyTo: 'validity_start',format: 'Y/m/d'});
new Ext.form.SHDateField({id: 'validity_end',applyTo: 'validity_end',format: 'Y/m/d'});
if(document.getElementById('post_type').value == 5)
   document.getElementById("kind_super").style.display="";
else 
   document.getElementById("kind_super").style.display="none";
 

var personStore = <?php 
echo dataReader::MakeStoreObject($js_prefix_address . "personal/persons/data/person.data.php?task=searchPerson&newPersons=true", "'PersonID','pfname','plname','unit_name','person_type','staff_id','personTypeName'");
?>
;