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


PHP Supplier::createSupplierList方法代码示例

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


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

示例1: showMachineUI

 function showMachineUI()
 {
     $db = Database::getInstance();
     $cxn = $db->getConnection();
     $selc = '<option value="1">Yes</option><option value="0">No</option></select>';
     if ($this->machineid != '') {
         $q = "SELECT *,DATE_FORMAT(Install_Date,'%d-%m-%Y') as id FROM Machine WHERE Machine_ID={$this->machineid}";
         if (!($res = $cxn->query($q))) {
             exit("error (showMachineUI : {$q}) : {$cxn->error}");
         }
         $r = mysqli_fetch_assoc($res);
         $this->machinename = $r['Machine_Name'];
         $this->machineslno = $r['Machine_SLNO'];
         $this->ncserialno = $r['NC_Serial_NO'];
         $this->installdatedb = $r['Install_Date'];
         $this->installdate = $r['id'];
         $this->showinlogentry = $r['Show_In_Logentry'];
         $this->supplierid = $r['Supplier_ID'];
         $this->machinedesc = $r['Machine_Desc'];
         $this->spindletaper = $r['Spindle_Taper'];
         $this->atcsize = $r['ATC_Size'];
         $this->maxrpm = $r['Max_RPM'];
         $this->tablesize = $r['Table_Size'];
         $this->stroke = $r['Stroke'];
         $this->toolclampingforce = $r['Tool_Clamping_Force'];
         $this->torque = $r['Torque'];
         $this->typeid = $r['Type_ID'];
         if ($this->showinlogentry == 1) {
             $selc = '<option value="1" selected >Yes</option><option value="0">No</option></select>';
         } else {
             $selc = '<option value="1">Yes</option><option value="0" selected>No</option></select>';
         }
     }
     echo '<fieldset><legend>Machine Details</legend>';
     $any = new Anylist();
     $any->createList('Machine_Type');
     $supp = new Supplier();
     $supp->createSupplierList();
     $sel = new selectlist('Supplier_ID', $supp->getSupplierList(), 'Select Supplier', 'Supplier_ID', 'Supplier_Name', 'class="required"', $this->supplierid, '1');
     $sel2 = new selectlist('Type_ID', $any->anylist, 'Select Equipment Type', 'Type_ID', 'Type_Description', 'class="required"', $this->typeid, '1');
     echo '<p><label>Machine Name</label><input id="machinename" name="machinename" class="required" value="' . $this->machinename . '"></p>';
     echo '<p><label>Machine Description</label><input id="machinedesc" name="machinedesc" class="required" value="' . $this->machinedesc . '"></p>';
     echo '<p><label>Machine Serial Number</label><input id="machineslno" name="machineslno" value="' . $this->machineslno . '"></p>';
     echo '<p><label>NC Serial Number</label><input id="ncserialno" name="ncserialno" value="' . $this->ncserialno . '"></p>';
     echo '<p><label>Spindle Taper</label><input id="spindletaper" name="spindletaper" value="' . $this->spindletaper . '"></p>';
     echo '<p><label>ATC Size</label><input id="atcsize" name="atcsize" value="' . $this->atcsize . '"></p>';
     echo '<p><label>Maximum RPM</label><input id="maxrpm" name="maxrpm" value="' . $this->maxrpm . '"></p>';
     echo '<p><label>Table Size</label><input id="tablesize" name="tablesize" value="' . $this->tablesize . '"></p>';
     echo '<p><label>Axis Strokes</label><input id="stroke" name="stroke" value="' . $this->stroke . '"></p>';
     echo '<p><label>Tool Clamping force</label><input id="toolclampingforce" name="toolclampingforce" value="' . $this->toolclampingforce . '"></p>';
     echo '<p><label>Torque</label><input id="torque" name="torque" value="' . $this->torque . '"></p>';
     echo '<p><label>Date OF Installation</label><input id="installdate" name="installdate" value="' . $this->installdate . '"><input id="installdatedb" type="hidden" name="installdatedb" value="' . $this->installdatedb . '"></p>';
     echo '<p><label>Show Machine In Log Entry Page?</label><select id="showinlogentry" name="showinlogentry">' . $selc;
     echo '</fieldset>';
     echo '<input type="submit" class="submit" value="Save Machine Details">';
 }
开发者ID:sknagesh,项目名称:divyaeng2,代码行数:56,代码来源:class.Machine.php

示例2: Supplier

     $supp = new Supplier();
     if (isset($_GET['bid'])) {
         $supp->setBrandID($_GET['bid']);
     }
     if (isset($_GET['scopeid'])) {
         $supp->setValue('scopeidl', $_GET['scopeid']);
     }
     if (isset($_GET['onlyapproved'])) {
         $supp->setValue('onlyapproved', $_GET['onlyapproved']);
     }
     if (isset($_GET['class'])) {
         $class = 'class="required"';
     } else {
         $class = '';
     }
     $supp->createSupplierList();
     $sel = new selectlist('Supplier_ID', $supp->getSupplierList(), 'Select Supplier', 'Supplier_ID', 'Supplier_Name', $class, '');
     break;
 case 'brand':
     $brand = new Brand();
     $brand->createBrandList();
     $sel = new selectlist('Brand_ID', $brand->getBrandList(), 'Select Brand', 'Brand_ID', 'Brand_Description', '', '');
     break;
 case 'ttype':
     $ttype = new TType();
     $ttype->createTypeList();
     if (isset($_GET['ttypeid'])) {
         $sid = $_GET['ttypeid'];
     } else {
         $sid = '';
     }
开发者ID:sknagesh,项目名称:divyaeng2,代码行数:31,代码来源:class.selectlist.php

示例3: showSpareInwardUI

 function showSpareInwardUI()
 {
     $supp = new Supplier();
     $supp->createSupplierList();
     echo '<fieldset><legend>Enter Spare Purcjase Details</legend>';
     $sel = new selectlist('Supplier_ID', $supp->getSupplierList(), 'Select Supplier', 'Supplier_ID', 'Supplier_Name', 'class="required"', '', '1');
     echo '<div id="poid"></div>';
     echo '<p><label>Enter Price</label><input id="price" name="price" class="required"></p>';
     echo '<p><label>Enter Quantity Purchased</label><input id="qty" name="qty" class="required"></p>';
     echo '<p><label>Date Received</label><input id="datereceived" name="datereceived" class="required"><input id="datereceiveddb" name="datereceiveddb" type="hidden"></p>';
     echo '<input type="button" id="receive" value="Save Quantity"> ';
 }
开发者ID:sknagesh,项目名称:divyaeng2,代码行数:12,代码来源:class.Spares.php


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