/** * @param ServiceRequest $request * @param Holder $holder * @param Rooms $rooms * @param ClientReference $client_reference * @throws ServiceHotelBookingException */ public function __construct(ServiceRequest $request, Holder $holder, Rooms $rooms, ClientReference $client_reference) { try { $this->request_data = ["holder" => $holder->getHolderData(), "rooms" => $rooms->getRooms(), "clientReference" => $client_reference->getReference()]; $this->response = $request->setHeaders(['json' => $this->request_data])->setOptions("bookings")->send("POST"); } catch (\Exception $e) { throw new ServiceHotelBookingException($e->getMessage()); } }
/** * This is construct base of the class. * * A public constructor; initializes the variable $instanceDataBase. * */ public function __construct($instanceDataBase) { parent::__construct($instanceDataBase); Holder::setDataOperationBusiness($instanceDataBase); Holder::getBusiness(); Holder::getDescriptionBusiness(); }
public static function dispatch() { $rules = parse_ini_file(ROUTING, true) or Common::fatalError('unable to open routing ini file.'); foreach ($rules as $name => $route) { if (Holder::get('page') === $name) { return $route['controller']; } } // Ugly, f**k off if (Holder::get('feed') !== false) { return 'src/PageAtomFeed.php'; } return Holder::get('page') === false ? "src/PageHome.php" : "src/Page404.php"; }
public function setHolder(Holder $holder) { $this->holder = $holder; if (($bin = substr($holder->getCreditCardNumber(), 0, 6)) !== false) { $this->setBin($bin); } }
}); }); </script> <?php $action = 'INSERT'; if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'EDIT') { $action = $_GET['ACTION']; } $preview_flag = 0; $data = array(); if ($action == 'EDIT') { null; } $catalog = new Holder($registry[$nameDataBase]); // Obtener lista $list = $catalog->getListaDependientes($_GET['id']); ?> <table class="data display dataTablePlugin cell_table_border"> <thead> <tr> <th class="ui-state-default custom-header-table"><?php echo 'ESTUDIANTE'; ?> </th> <th class="ui-state-default custom-header-table"><?php echo 'CODIGO'; ?> </th> <th class="ui-state-default custom-header-table"><?php
if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = 'Tool_ID'; } if (isset($_GET['label'])) { $label = $_GET['label']; } else { $label = "Select Tool To Edit"; } $tool->setTypeID($_GET['ttyid']); $tool->createToolList(); $sel = new selectlist($id, $tool->getToolList(), $label, 'Tool_ID', 'td', '', ''); break; case 'holder': $holder = new Holder(); $holder->createHolderList(); $sel = new selectlist('Holder_ID', $holder->getHolderList(), 'Select Holder', 'Holder_ID', 'Holder_Description', '', ''); break; case 'tmisc': $tmisc = new Tmisc(); $tmisc->createTmiscList(); $sel = new selectlist('ToolMisc_ID', $tmisc->getTmiscList(), 'Select Accessory', 'ToolMisc_ID', 'Misc_Desc', '', ''); break; case 'toolbody': $toolbody = new Toolbody(); if (isset($_GET['tdia'])) { $toolbody->setCdiameter($_GET['tdia']); } if (isset($_GET['ttyid'])) { $toolbody->setTypeID($_GET['ttyid']);
$(".combobox" ).combobox(); }); </script> <?php $action = 'INSERT'; if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'EDIT') { $action = $_GET['ACTION']; } $preview_flag = 0; $data = array(); if ($action == 'EDIT') { null; } $catalog = new Holder($registry[$nameDataBase]); // Obtener lista $list = $catalog->getListaDependientes($_GET['id']); $titular = $catalog->getListHolder($_GET['id']); $data_titular = array(); if (count($titular) > 0) { $data_titular = $titular[0]; } ?> <form id="course_data_form" method="POST" action="?page=course/titular_admin&ACTION=ASIGNAR_DEPENDIENTES" enctype="multipart/form-data" > <table class="form"> <input type="hidden" name="ACTION" value="ASIGNAR_DEPENDIENTES" >
<?php session_start(); // Everything has a beginning... require_once 'src/Config.php'; $time = microtime(); require_once 'src/ModelEntities.php'; require_once 'src/Common.php'; require_once 'src/Holder.php'; require_once 'src/Dispatcher.php'; require_once 'src/Skeleton.php'; require_once 'src/Stat.php'; Holder::init(); Stat::log(); $app = new AsciiMasterWidget(80); $skeleton = new Skeleton($app); require_once Dispatcher::dispatch(); require_once 'src/Template.php';
<?php require_once 'autoload.php'; $_SESSION['LAST_ACTIVITY'] = time(); $holder = new Holder(); if (isset($_POST['holderdesc'])) { //print_r($_POST); //print_r($_FILES); if (isset($_POST['Holder_ID'])) { $holder->setHolderID($_POST['Holder_ID']); $holderid = $_POST['Holder_ID']; } else { $holderid = ''; } ///get holder_id if we are editing an existing tool. $holder->setHolderDesc($_POST['holderdesc']); $holder->setMfgPartNO($_POST['mfgpartno']); if (isset($_POST['gagelength'])) { $holder->setGageLength($_POST['gagelength']); } if (isset($_POST['spindletaper'])) { $holder->setSpindleTaper($_POST['spindletaper']); } if (isset($_POST['price'])) { $holder->setPrice($_POST['price']); } $holder->saveHolder($holderid); } else { if (isset($_GET['hid'])) { $holder->setHolderID($_GET['hid']); }
} }}); }); </script> <?php $action = 'LIST'; if (isset($_POST['ACTION'])) { $action = $_POST['ACTION']; } else { if (isset($_GET['ACTION'])) { $action = $_GET['ACTION']; } } $user = new User($registry[$nameDataBase]); $catalog = new Holder($registry[$nameDataBase]); // Simplificar la ruta de propiedades $v_label = $property["pages"]["course/titular_admin"]; $v_label_list = $property["pages"]["general_list"]; // Simplificar el ruteo de edicion/visualizacion $v_route_edit_preview = 'index.php?page=course/titular'; // Simplificar el ruteo de insert $v_route_insert = '?page=course/titular'; // Simplificar el ruteo de lista $v_route_list = 'index.php?page=course/titular_admin'; switch ($action) { case 'INSERT': $transaction = new Transaction($registry[$nameDataBase]); Holder::setDataOperationBusiness($registry[$nameDataBase]); $idTransaction = $transaction->insertTransaction(array(Holder::$business, Holder::$insert, Holder::$descriptionBusiness)); $query = null;
function showOpeToolUI() { $ttype = new TType(); $ttype->createTypeList(); $toolbody = new Toolbody(); $toolbody->createToolBodyList(); $holder = new Holder(); $holder->createHolderList(); if ($this->opedrawingid == '') { echo <<<_END \t\t\t<fieldset> \t\t\t\t<legend>Tool Details</legend> \t\t\t\t<fieldset><legend>Preferred Tool </legend> \t\t\t\t<p> \t\t\t\t<label>Select Tool Type</label> _END; $sel = new selectlist('Tool_Type_ID_1', $ttype->getTypeList(), 'Select Tool Type', 'Tool_Type_ID', 'Tool_Type', '', '', ''); echo <<<_END \t\t\t\t</p> \t\t\t\t<p> \t\t\t\t<label>Tool Diameter</label> \t\t\t\t<input id="dia1" name="dia1" size="25" required/> \t\t\t\t</p> \t\t\t\t<p> \t\t\t\t<div id="tdia1"> </div> \t\t\t\t</p> \t\t\t\t<p> \t\t\t\t<div id="tbody1"> </div> \t\t\t\t\t <p> \t\t \t\t\t <label>Tool Holder</label> _END; $sel = new selectlist('Holder_ID_1', $holder->getHolderList(), 'Select Holder', 'Holder_ID', 'Holder_Description', '', '', ''); echo <<<_END \t \t\t\t\t\t </p> \t\t\t\t\t </fieldset> \t\t\t\t<fieldset><legend>Alternate Tool </legend> \t\t\t\t<p> \t\t\t\t<label>Select Tool Type</label> _END; $sel = new selectlist('Tool_Type_ID_2', $ttype->getTypeList(), 'Select Tool Type', 'Tool_Type_ID', 'Tool_Type', '', '', ''); echo <<<_END \t\t\t\t</p> \t\t\t\t<p> \t\t\t\t<label>Tool Diameter</label> \t\t\t\t<input id="dia2" name="dia2" size="25"/> \t\t\t\t</p> \t\t\t\t<div id="tdia2"> </div> \t\t\t\t</p> \t\t\t\t<p> \t\t\t\t<div id="tbody2"> </div> \t\t\t\t\t <p> \t\t \t\t\t <label>Tool Holder</label> _END; $sel = new selectlist('Holder_ID_2', $holder->getHolderList(), 'Select Holder', 'Holder_ID', 'Holder_Description', '', '', ''); echo <<<_END \t \t\t\t\t\t </p> \t\t\t\t\t </fieldset> \t\t\t\t\t <fieldset><legend>Tool Working Details</legend> \t\t\t\t\t <p> \t\t\t\t\t <label>Tool Projection from Holder</label> \t\t\t\t\t <input id="tooloh" name="tooloh" size="25" class="required number"/> \t\t\t\t\t </p> \t\t\t\t\t <p> \t\t\t\t\t <label>Work Description</label> \t\t\t\t\t <input id="desc" name="desc" size="25" class="required"/> \t\t\t\t\t </p> \t\t\t\t\t <p> \t\t\t\t\t <label>Tool Cutting Time in mins</label> \t\t\t\t\t <input id="cuttingmins" name="cuttingmins" size="25" class="number"/> \t\t\t\t\t </p> \t\t\t\t\t <p> \t\t\t\t\t <label>Tool Life</label> \t\t\t\t\t <input id="toollife" name="toollife" size="25" /> \t\t\t\t\t </p> \t\t\t\t\t</fieldset> \t\t\t\t</fieldset> \t\t\t <p> \t\t\t <input class="submit" type="submit" value="Save"/> \t\t\t </p> _END; } else { $db = Database::getInstance(); $cxn = $db->getConnection(); $q = "SELECT * FROM Ope_Tool WHERE Ope_Drawing_ID={$this->opedrawingid} AND Deleted=0"; // print($q); if (!($res = $cxn->query($q))) { exit("error : {$cxn->error}"); } $i = 0; if ($res->num_rows > 0) { print "<p>Tools Aded To this Operation</p>"; print "<table border=\"1\" cellspacing=\"1\" bgcolor=\"#7FFFD4\">"; print "<tr><th>Delete</th><th>Preferred Tool</th><th>Preferred Holder</th><th>Alternate Tool</th><th>Alternate Holder</th>\n\t\t\t\t\t\t\t<th>Description</th><th>Tool OH</th><th>Cutting Time</th><th>Tool Life</th></tr>"; while ($row = mysqli_fetch_assoc($res)) { print "<tr><td>"; print "<input type=\"checkbox\" name=\"tdel[{$i}]\" value=\"{$row['Ope_Tool_ID']}\" >\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"otid[{$i}]\" value=\"{$row['Ope_Tool_ID']}\"></td><td>"; //preferred tool $q1 = "SELECT * FROM Tool WHERE Tool_ID={$row['Tool_ID_1']}"; $res1 = $cxn->query($q1); $row1 = mysqli_fetch_assoc($res1); $tool = new Tool(); $tool->setCdiameter($row1['Cutting_Dia']); $tool->setTypeID($row1['Tool_Type_ID']); $tool->createToolList(); print "<table><tr><td>"; $sel = new selectlist('tid1[' . $i . ']', $tool->getToolList(), 'Select Tool', 'Tool_ID', 'td', '', $row['Tool_ID_1']); print "</td></tr>"; $toolbody = new Toolbody(); $toolbody->setToolID($row['Tool_ID_1']); $toolbody->createToolBodyList(); print "<tr><td><div id=\"bd1{$i}\">"; $sel = new selectlist('tbid1[' . $i . ']', $toolbody->getToolBodyList(), 'Select Tool Body', 'ToolBody_ID', 'td', '', $row['ToolBody_ID_1']); print "</div></td></tr>"; print "</table></td><td>"; //preferred holder $holder = new Holder(); $holder->createHolderList(); $sel = new selectlist('hid1[' . $i . ']', $holder->getHolderList(), 'Select Holder', 'Holder_ID', 'Holder_Description', '', $row['Holder_ID_1']); print "</td><td>"; //alternate tool if ($row['Tool_ID_2'] != 0) { $q2 = "SELECT * FROM Tool WHERE Tool_ID={$row['Tool_ID_2']}"; } else { $q2 = "SELECT * FROM Tool WHERE Tool_ID={$row['Tool_ID_1']}"; } $res2 = $cxn->query($q2); $row2 = mysqli_fetch_assoc($res2); $tool->setCdiameter($row2['Cutting_Dia']); $tool->setTypeID($row2['Tool_Type_ID']); $tool->createToolList(); print "<table><tr><td>"; $sel = new selectlist('tid2[' . $i . ']', $tool->getToolList(), 'Select Tool', 'Tool_ID', 'td', '', $row['Tool_ID_2']); print "</td></tr>"; $toolbody2 = new Toolbody(); $toolbody2->setToolID($row['Tool_ID_2']); $toolbody2->createToolBodyList(); print "<tr><td><div id=\"bd2{$i}\">"; $sel = new selectlist('tbid2[' . $i . ']', $toolbody2->getToolBodyList(), 'Select Tool Body', 'ToolBody_ID', 'td', '', $row['ToolBody_ID_2']); print "</div></td></tr>"; print "</table></td><td>"; //alternate holder $sel = new selectlist('hid2[' . $i . ']', $holder->getHolderList(), 'Select Holder', 'Holder_ID', 'Holder_Description', '', $row['Holder_ID_2']); print "</td><td>"; print "<input type=\"text\" name=\"desc[{$i}]\" value=\"{$row['Ope_Tool_Desc']}\"></td>"; print "<td><input type=\"text\" name=\"toh[{$i}]\" size=\"5\" value=\"{$row['Ope_Tool_OH']}\"></td>"; print "<td><input type=\"text\" name=\"ct[{$i}]\" size=\"5\" value=\"{$row['Cutting_MIns']}\"></td>"; print "<td><input type=\"text\" name=\"tl[{$i}]\" size=\"5\" value=\"{$row['Ope_Tool_Life']}\"></td>"; $i++; } print "</table>\n\t\t\t\t\t <p>\n\t\t\t\t\t <input class=\"submit\" type=\"submit\" value=\"Save\"/><input type=\"button\" Value=\"Approve\" id=\"abutton\"><input name=\"appremarks\" size=\"50\" id=\"appremarks\">\n\t\t\t\t\t </p>"; } else { print "<p>No Tools Added for This Operation!!</p>"; } } }
/** * API Method inserts a new Holder record and render response as JSON */ public function Create() { try { $json = json_decode(RequestUtil::GetBody()); if (!$json) { throw new Exception('The request body does not contain valid JSON'); } $holder = new Holder($this->Phreezer); // TODO: any fields that should not be inserted by the user should be commented out // this is an auto-increment. uncomment if updating is allowed // $holder->Idholder = $this->SafeGetVal($json, 'idholder'); $holder->Institution = $this->SafeGetVal($json, 'institution'); $holder->Holder = $this->SafeGetVal($json, 'holder'); $holder->Notes = $this->SafeGetVal($json, 'notes'); $holder->Validate(); $errors = $holder->GetValidationErrors(); if (count($errors) > 0) { $this->RenderErrorJSON('Please check the form for errors', $errors); } else { $holder->Save(); $this->RenderJSON($holder, $this->JSONPCallback(), true, $this->SimpleObjectParams()); } } catch (Exception $ex) { $this->RenderExceptionJSON($ex); } }
$fk_id_admision_area = 0; $observation_status = 'APROVED'; $status_admision_process = 0; $fk_id_admision_area = 0; $area = 'area'; $admissionArea = new AdmissionArea($registry[$nameDataBase]); $formObject = new MembershipAppForm($registry[$nameDataBase]); $process = new AdmissionProcess($registry[$nameDataBase]); $personObject = new Person($registry[$nameDataBase]); $assDoc = new AssignPersonIdentifyDoc($registry[$nameDataBase]); $assProf = new AssignPersonProfession($registry[$nameDataBase]); $contact = new Contact($registry[$nameDataBase]); $assContact = new AssignPersonContact($registry[$nameDataBase]); $bill = new BillingData($registry[$nameDataBase]); $element_padres = new ApplicationParents($registry[$nameDataBase]); $holder = new Holder($registry[$nameDataBase]); $assign_holder_student = new AssignHolderStudent($registry[$nameDataBase]); $student = new Student($registry[$nameDataBase]); $family = new Family($registry[$nameDataBase]); $assign_student_family = new AssignStudentFamily($registry[$nameDataBase]); $flowProcess = $admissionArea->getListAdmissionArea(); //print_r($flowProcess); $forms = array(); $areas = array(); if (isset($_POST['ID_FORM'])) { $id_form = $_POST['ID_FORM']; $status = $_POST['STATUS_ADMISSION']; $name = $_POST['NAME']; $last_name = $_POST['LAST_NAME']; $date_start = NULL; if ($_POST['DATE_INI'] != '' && $_POST['DATE_INI'] != null) {
}}); }); </script> <?php $action = 'LIST'; if (isset($_POST['ACTION'])) { $action = $_POST['ACTION']; } else { if (isset($_GET['ACTION'])) { $action = $_GET['ACTION']; } } $user = new User($registry[$nameDataBase]); $catalog = new Student($registry[$nameDataBase]); $holder = new Holder($registry[$nameDataBase]); $family = new Family($registry[$nameDataBase]); $assHolderStudent = new AssignHolderStudent($registry[$nameDataBase]); $assStudentFamily = new AssignStudentFamily($registry[$nameDataBase]); $assHolderFamily = new AssignHolderFamily($registry[$nameDataBase]); // Simplificar la ruta de propiedades $v_label = $property["pages"]["course/student_admin"]; $v_label_list = $property["pages"]["general_list"]; // Simplificar el ruteo de edicion/visualizacion $v_route_edit_preview = 'index.php?page=course/student'; // Simplificar el ruteo de insert $v_route_insert = '?page=course/student'; // Simplificar el ruteo de lista $v_route_list = 'index.php?page=course/student_admin'; switch ($action) { case 'INSERT':
/** * @param Holder $holder */ public function setHolder(Holder $holder) { $this->holder = $holder; $bin = substr($holder->getCreditCardNumber(), 0, 6); if (!empty($bin)) { $this->setBin($bin); } }