<?php require "../../../frame/engine.php"; ENGINE::START(); $user = USER::VERIFY(0, TRUE); $tid = $_GET['ticket']; $mid = $_GET['mid']; $part = explode("-", $_GET['part']); $release = explode(" ", $_GET['release']); $type = $_GET['type']; $Model = MYSQL::QUERY("SELECT * FROM device_models WHERE m_id = ? LIMIT 1", array($mid)); if ($part[0] == "it") { ENGINE::ITEM($tid, $user, $Model, $part[1], $type, $release); } else { ENGINE::SERVICE($tid, $user, $Model, $part[1], $type, $release); }
</form> <div style="width:492px;height:215px;"> <div class="txt_dsb" style="width:100%;height:180px;margin:0px !important;" id="estimator"> <h4 class="ui-widget-header" style="margin:0px;border: 0px;border-top-right-radius: 3px;border-top-left-radius: 3px;">Repair parts used</h4> <div id="estimation" style="padding:10px;height:113px;"> <?php $items = explode("|", $ticket['t_estimate_items']); foreach ($items as $item) { if (!empty($item)) { $partid = explode("-", $item); if ($partid[0] == "it") { $partid = $partid[1]; ENGINE::ITEM($tid, $user, $Model, $partid, $type, $release); } else { $serviceid = $partid[1]; ENGINE::SERVICE($tid, $user, $Model, $serviceid, $type, $release); } } } ?> </div> <div id="total" class="ui-widget-header" style="border:0px;border-top:1px solid #ACB1B7;padding-right:10px;height:24px;"> <div class="bname">TOTAL: $<font class="tc"><?php echo $ticket['t_estimate_price']; ?> </font></div> </div> </div> <button type="button" class="continue" onClick="PassRepair('<?php echo $tid; ?>