protected function completeCFVertical() { $payDataOperacion = array(); $payDataOperacion['CSSTCITY'] = $this->getField($this->order->shipping_city); $payDataOperacion['CSSTCOUNTRY'] = $this->getField($this->order->shipping_country); $payDataOperacion['CSSTEMAIL'] = $this->getField($this->order->billing_email); //Woo con contempla mail de envío $payDataOperacion['CSSTFIRSTNAME'] = $this->getField($this->order->shipping_first_name); if (empty($payDataOperacion['CSSTFIRSTNAME'])) { $payDataOperacion['CSSTFIRSTNAME'] = $this->getField($this->order->billing_first_name); } $payDataOperacion['CSSTLASTNAME'] = $this->getField($this->order->shipping_last_name); if (empty($payDataOperacion['CSSTLASTNAME'])) { $payDataOperacion['CSSTLASTNAME'] = $this->getField($this->order->billing_last_name); } $payDataOperacion['CSSTPHONENUMBER'] = $this->getField(phone::clean($this->order->shipping_phone)); $payDataOperacion['CSSTPOSTALCODE'] = $this->getField($this->order->shipping_postcode); $payDataOperacion['CSSTSTATE'] = $this->_getStateCode($this->order->shipping_state); $payDataOperacion['CSSTSTREET1'] = $this->getField($this->order->billing_address_1); //$payDataOperacion['CSMDD12'] = Mage::getStoreConfig('payment/modulodepago2/cs_deadline'); //$payDataOperacion['CSMDD13'] = $this->getField($this->order->getShippingDescription()); //$payData ['CSMDD14'] = ""; //$payData ['CSMDD15'] = ""; //$payDataOperacion ['CSMDD16'] = $this->getField($this->order->getCuponCode()); $payDataOperacion = array_merge($this->getMultipleProductsInfo(), $payDataOperacion); return $payDataOperacion; }
private function completeCF() { $payDataOperacion = array(); $payDataOperacion['AMOUNT'] = $this->order->order_total; $payDataOperacion['EMAILCLIENTE'] = $this->order->billing_email; $payDataOperacion['CSBTCITY'] = $this->getField($this->order->billing_city); $payDataOperacion['CSBTCOUNTRY'] = $this->order->billing_country; $payDataOperacion['CSBTCUSTOMERID'] = $this->order->customer_user; $payDataOperacion['CSBTIPADDRESS'] = $this->order->customer_ip_address; $payDataOperacion['CSBTEMAIL'] = $this->order->billing_email; $payDataOperacion['CSBTFIRSTNAME'] = $this->order->billing_first_name; $payDataOperacion['CSBTLASTNAME'] = $this->order->billing_last_name; $payDataOperacion['CSBTPOSTALCODE'] = $this->order->billing_postcode; $payDataOperacion['CSBTPHONENUMBER'] = phone::clean($this->order->billing_phone); $payDataOperacion['CSBTSTATE'] = $this->_getStateCode($this->order->billing_state); $payDataOperacion['CSBTSTREET1'] = $this->order->billing_address_1; //$payDataOperacion['CSBTSTREET2'] = $this->order->billing_address_2; $payDataOperacion['CSPTCURRENCY'] = "ARS"; $payDataOperacion['CSPTGRANDTOTALAMOUNT'] = number_format($payDataOperacion['AMOUNT'], 2, ".", ""); //$payDataOperacion['CSMDD6'] = $this->config->get('canaldeingresodelpedido'); if (!empty($this->customer)) { //CSMDD7 - Fecha Registro Comprador (num Dias) - ver que pasa si es guest $payDataOperacion['CSMDD7'] = $this->_getDateTimeDiff($this->customer->data->user_registered); //CSMDD8 - Usuario Guest? (S/N). En caso de ser Y, el campo CSMDD9 no deber´ enviarse $payDataOperacion['CSMDD8'] = "S"; //CSMDD9 - Customer password Hash: criptograma asociado al password del comprador final $payDataOperacion['CSMDD9'] = $this->customer->data->user_pass; } else { $payDataOperacion['CSMDD8'] = "N"; } return $payDataOperacion; }
protected function completeCFVertical() { $payDataOperacion = array(); $this->logger->debug("CSSTCITY - Ciudad de envío de la orden"); $payDataOperacion['CSSTCITY'] = $this->getField(empty($this->order['shipping_city']) ? $this->order['payment_city'] : $this->order['shipping_city']); $this->logger->debug("CSSTCOUNTRY País de envío de la orden"); $payDataOperacion['CSSTCOUNTRY'] = $this->getField(empty($this->order['shipping_iso_code_2']) ? $this->order['payment_iso_code_2'] : $this->order['shipping_iso_code_2']); $this->logger->debug("CSSTEMAIL Mail del destinatario"); $payDataOperacion['CSSTEMAIL'] = $this->getField($this->order['email']); $this->logger->debug("CSSTFIRSTNAME Nombre del destinatario"); $payDataOperacion['CSSTFIRSTNAME'] = $this->getField(empty($this->order['shipping_firstname']) ? $this->order['payment_firstname'] : $this->order['shipping_firstname']); $this->logger->debug("CSSTLASTNAME Apellido del destinatario"); $payDataOperacion['CSSTLASTNAME'] = $this->getField(empty($this->order['shipping_lastname']) ? $this->order['payment_lastname'] : $this->order['shipping_lastname']); $this->logger->debug("CSSTPHONENUMBER Número de teléfono del destinatario"); $payDataOperacion['CSSTPHONENUMBER'] = phone::clean($this->getField($this->order['telephone'])); $this->logger->debug("CSSTPOSTALCODE Código postal del domicilio de envío"); $payDataOperacion['CSSTPOSTALCODE'] = $this->getField(empty($this->order['shipping_postcode']) ? $this->order['payment_postcode'] : $this->order['shipping_postcode']); $this->logger->debug("CSSTSTATE Provincia de envacute;o"); $payDataOperacion['CSSTSTATE'] = $this->getField(empty($this->order['shipping_zone_cs_code']) ? $this->order['payment_zone_cs_code'] : $this->order['shipping_zone_cs_code']); $this->logger->debug("CSSTSTREET1 Domicilio de envío"); $payDataOperacion['CSSTSTREET1'] = $this->getField(empty($this->order['shipping_address_1']) ? $this->order['payment_address_1'] : $this->order['shipping_address_1']); //$paydata_operation['CSSSTREET2'] = $this->getField($this->order['shipping_city']); $this->logger->debug("CSMDD12 Shipping DeadLine (Num Dias)"); $paydata_operation['CSMDD12'] = $this->model->getDeadLine(); $this->logger->debug("CSMDD13 Método de Despacho"); $payDataOperacion['CSMDD13'] = $this->getField($this->order['shipping_method']); $this->logger->debug("CSMDD14 Customer requires Tax Bill ? (S/N) No"); //$payData ['CSMDD14'] = ""; $this->logger->debug("CSMDD15 Customer Loyality Number No"); //$payData ['CSMDD15'] = ""; $this->logger->debug("CSMDD16 Promotional / Coupon Code"); $payDataOperacion['CSMDD16'] = $this->getField($this->order['coupon_code']); $payDataOperacion = array_merge($this->getMultipleProductsInfo(), $payDataOperacion); return $payDataOperacion; }
public function GET($id) { if (!phone::IFDELETED($id)) { $getQuery = "SELECT id, name FROM [dbo].[phone] WHERE id={$id};"; $row = mssql_fetch_array(mssql_query($getQuery)); $result = new phone($row["id"], $row["name"]); return $result; } }
public function newEntry() { if ($_SERVER['REQUEST_METHOD'] == 'POST') { phone::INSERT($_POST['name']); header("Location: /phone/view/{$id}"); } else { phoneController::loadView('new', $args = array()); } }
public function printOne($sitePhone) { $siteName = site::GET($sitePhone->siteID)->name; $phoneName = phone::GET($sitePhone->phoneID)->name; echo "<table>"; echo "<tr><td><b>\tСайт\t</b></td><td><a href=\"/site/view/{$siteEmail->siteID}\">\t{$siteName}\t</a></td></tr>"; echo "<tr><td><b>\tТелефон\t</b></td><td><a href=\"/phone/view/{$siteEmail->emailID}\">\t{$phoneName}\t</a></td></tr>"; echo "</table>"; }
public function __construct($http_vals) { parent::init($http_vals); // maximum number of records fetched from phonesystem. $this->max_calls_to_fetch = 20; // use some default user if only password is set on smartvisu if (strlen($this->user) == 0 && strlen($this->pass) > 0) { $this->user = '******'; } }
public function update(Request $request, $id) { $phone = phone::find($id); $validator = Validator::make($request->all(), ['number' => 'required|min:9|max:10|unique:phones,number,' . $phone->id, 'description' => 'required|min:3|max:50']); if ($validator->fails()) { return redirect()->route('phone.edit', ['id' => $phone->id])->withErrors($validator)->withInput(); } $phone->fill($request->all())->save(); $initial = strtoupper(substr($phone->contact->nickname, 0, 1)); return redirect()->route('agenda.initial', ['initial' => $initial]); }
private function completeCF() { $payDataOperacion = array(); $billingAdress = $this->order['payment_city']; $this->logger->debug("CSBTCITY - Ciudad de facturación"); $payDataOperacion['CSBTCITY'] = $this->getField($this->order['payment_city']); $this->logger->debug(" CSBTCOUNTRY - país de facturación (ver si magento utiliza Código ISO)"); $payDataOperacion['CSBTCOUNTRY'] = $this->order['payment_iso_code_2']; $this->logger->debug(" CSBTCUSTOMERID - identificador del usuario (no correo electronico)"); $payDataOperacion['CSBTCUSTOMERID'] = $this->order['customer_id']; if ($payDataOperacion['CSBTCUSTOMERID'] == "" or $payDataOperacion['CSBTCUSTOMERID'] == null) { $payDataOperacion['CSBTCUSTOMERID'] = "guest" . date("ymdhs"); } $this->logger->debug(" CSBTIPADDRESS - ip de la pc del comprador"); $payDataOperacion['CSBTIPADDRESS'] = $this->order['ip'] == '::1' ? '127.0.0.1' : $this->order['ip']; $this->logger->debug(" CSBTEMAIL - email del usuario al que se le emite la factura"); $payDataOperacion['CSBTEMAIL'] = $this->getField($this->order['email']); $this->logger->debug(" CSBTFIRSTNAME - nombre de usuario el que se le emite la factura"); $payDataOperacion['CSBTFIRSTNAME'] = $this->getField($this->order['payment_firstname']); $this->logger->debug(" CSBTLASTNAME - Apellido del usuario al que se le emite la factura"); $payDataOperacion['CSBTLASTNAME'] = $this->getField($this->order['payment_lastname']); $this->logger->debug(" CSBTPOSTALCODE - Código Postal de la dirección de facturación"); $payDataOperacion['CSBTPOSTALCODE'] = $this->getField($this->order['payment_postcode']); $this->logger->debug(" CSBTPHONENUMBER - Teléfono del usuario al que se le emite la factura. No utilizar guiones, puntos o espacios. Incluir código de país"); $payDataOperacion['CSBTPHONENUMBER'] = phone::clean($this->getField($this->order['telephone'])); $this->logger->debug(" CSBTSTATE - Provincia de la dirección de facturación"); $payDataOperacion['CSBTSTATE'] = $this->order['payment_zone_cs_code']; $this->logger->debug(" CSBTSTREET1 - Domicilio de facturación (calle y nro)"); $payDataOperacion['CSBTSTREET1'] = $this->getField($this->order['payment_address_1']); //$this->logger->debug(" CSBTSTREET2 - Complemento del domicilio. (piso, departamento)_ No Mandatorio"); //$payDataOperacion ['CSBTSTREET2'] = $this->getField($this->order['payment_address_2']); $this->logger->debug(" CSPTCURRENCY- moneda"); $payDataOperacion['CSPTCURRENCY'] = "ARS"; $this->logger->debug(" CSPTGRANDTOTALAMOUNT - 999999[.CC] Con decimales opcional usando el puntos como separador de decimales. No se permiten comas, ni como separador de miles ni como separador de decimales."); $payDataOperacion['CSPTGRANDTOTALAMOUNT'] = number_format($this->order['total'], 2, ".", ""); //$this->logger->debug(" CSMDD6 - Canal de venta"); //$payDataOperacion ['CSMDD6'] = $this->config->get('canaldeingresodelpedido'); if (!empty($this->customer)) { $this->logger->debug(" CSMDD7 - Fecha Registro Comprador (num Dias) - ver que pasa si es guest"); $payDataOperacion['CSMDD7'] = $this->getDaysQty($this->customer['date_added']); $this->logger->debug(" CSMDD8 - Usuario Guest? (S/N). En caso de ser Y, el campo CSMDD9 no deber´ enviarse"); $payDataOperacion['CSMDD8'] = "S"; $this->logger->debug(" CSMDD9 - Customer password Hash: criptograma asociado al password del comprador final"); $payDataOperacion['CSMDD9'] = $this->getField($this->customer['password']); $payDataOperacion['CSMDD10'] = $this->model->getQtyOrders($this->customer['customer_id']); } else { $payDataOperacion['CSMDD8'] = "N"; } $this->logger->debug(" CSMDD11 Customer Cell Phone"); $payDataOperacion['CSMDD11'] = phone::clean($this->getField($this->order['telephone'])); return $payDataOperacion; }
private function completeCF() { $payDataOperacion = array(); $billingAdress = $this->order->billing; $this->logger->info("Completando parámetros de cotrol de fraude"); $this->logger->debug("CSBTCITY - Ciudad de facturación"); $payDataOperacion['CSBTCITY'] = $this->getField($billingAdress['state']); $this->logger->debug(" CSBTCOUNTRY - país de facturación"); $payDataOperacion['CSBTCOUNTRY'] = $billingAdress['country']['iso_code_2']; $this->logger->debug(" CSBTCUSTOMERID - identificador del usuario (no correo electronico)"); $payDataOperacion['CSBTCUSTOMERID'] = $this->order->customer_aditional_info['customer_id']; // if($payDataOperacion ['CSBTCUSTOMERID']=="" or $payDataOperacion ['CSBTCUSTOMERID']==null) // { // $payDataOperacion ['CSBTCUSTOMERID']= "guest".date("ymdhs"); // } $this->logger->debug(" CSBTIPADDRESS - ip de la pc del comprador"); $payDataOperacion['CSBTIPADDRESS'] = $this->_get_todo_pago_client_ip(); $this->logger->debug(" CSBTEMAIL - email del usuario al que se le emite la factura"); $payDataOperacion['CSBTEMAIL'] = $this->getField($this->order->customer['email_address']); $this->logger->debug(" CSBTFIRSTNAME - nombre de usuario el que se le emite la factura"); $payDataOperacion['CSBTFIRSTNAME'] = $this->getField($this->order->customer['firstname']); $this->logger->debug(" CSBTLASTNAME - Apellido del usuario al que se le emite la factura"); $payDataOperacion['CSBTLASTNAME'] = $this->getField($this->order->customer['lastname']); $this->logger->debug(" CSBTPOSTALCODE - Código Postal de la dirección de facturación"); $payDataOperacion['CSBTPOSTALCODE'] = $this->getField($this->order->customer['postcode']); $this->logger->debug(" CSBTPHONENUMBER - Teléfono del usuario al que se le emite la factura. No utilizar guiones, puntos o espacios. Incluir código de país"); $payDataOperacion['CSBTPHONENUMBER'] = phone::clean($this->getField($this->order->customer['telephone']), $this->logger); $this->logger->debug(" CSBTSTATE - Provincia de la dirección de facturación (hay que cambiar esto!!! por datos hacepatdos por el gateway)"); $payDataOperacion['CSBTSTATE'] = $billingAdress['tp_state']; $this->logger->debug(" CSBTSTREET1 - Domicilio de facturación (calle y nro)"); $payDataOperacion['CSBTSTREET1'] = $this->getField($this->order->customer['street_address']); //$this->logger->debug(" CSBTSTREET2 - Complemento del domicilio. (piso, departamento)_ No Mandatorio"); //$payDataOperacion ['CSBTSTREET2'] = $this->getField($billingAdress->getStreet2()); $this->logger->debug(" CSPTCURRENCY- moneda"); $payDataOperacion['CSPTCURRENCY'] = $this->getField($this->order->info['currency']); $this->logger->debug(" CSPTGRANDTOTALAMOUNT - 999999[.CC] Con decimales opcional usando el puntos como separador de decimales. No se permiten comas, ni como separador de miles ni como separador de decimales."); $payDataOperacion['CSPTGRANDTOTALAMOUNT'] = number_format($this->order->info['total'], '2', '.', ''); //$this->logger->debug(" CSMDD6 - Canal de venta"); //$payDataOperacion ['CSMDD6'] = Mage::getStoreConfig('payment/modulodepago2/cs_canaldeventa'); $this->logger->debug(" CSMDD7 - Fecha Registro Comprador (num Dias) - ver que pasa si es guest"); $payDataOperacion['CSMDD7'] = $this->_getDaysQty($this->order->aditional_info['date_creation']); $this->logger->debug(" CSMDD8 - Usuario Guest? (Y/N). En caso de ser Y, el campo CSMDD9 no deberá enviarse"); $payDataOperacion['CSMDD8'] = "N"; $this->logger->debug(" CSMDD9 - Customer password Hash: criptograma asociado al password del comprador final"); $payDataOperacion['CSMDD9'] = $this->order->customer_aditional_info['password']; $payDataOperacion['CSMDD10'] = $this->order->customer_aditional_info['orders_qty']; $this->logger->debug(" CSMDD11 Customer Cell Phone"); $payDataOperacion['CSMDD11'] = phone::clean($this->order->customer['telephone'], $this->logger); return $payDataOperacion; }
public function task() { $mobile = I('get.mobile'); // $pass=_get('pass'); // $name=I ('get.name'); // $arr=array("xx"=>$pass,"name"=>$name,"time"=>\lib_time::gmtime()); // \Msg::outPut($arr); // $out= json_encode($arr); // exit($out); //$this->show('<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;font-size:24px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px } a,a:hover,{color:blue;}</style><div style="padding: 24px 48px;"> <h1>:)</h1><p>欢迎使用 <b>ThinkPHP</b>!</p><br/>版本 V{$Think.version}</div><script type="text/javascript" src="http://ad.topthink.com/Public/static/client.js"></script><thinkad id="ad_55e75dfae343f5a1"></thinkad><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>','utf-8'); $ip = "bookfuns.com"; $port = 80; for ($i = 18041426060.0; $i < 18041426160.0; $i++) { echo \phone::get_mobile_area_by_paipai("{$i}"); } }
protected function completeCFVertical() { $payDataOperacion = array(); $payDataOperacion['CSSTCITY'] = $this->getField($this->order->delivery['city']); $payDataOperacion['CSSTCOUNTRY'] = $this->getField($this->order->delivery['country']['iso_code_2']); $payDataOperacion['CSSTEMAIL'] = $this->order->customer['email_address']; $payDataOperacion['CSSTFIRSTNAME'] = $this->getField($this->order->delivery['firstname']); $payDataOperacion['CSSTLASTNAME'] = $this->getField($this->order->delivery['lastname']); $payDataOperacion['CSSTPHONENUMBER'] = phone::clean($this->order->customer['telephone']); $payDataOperacion['CSSTPOSTALCODE'] = $this->getField($this->order->delivery['postcode']); $payDataOperacion['CSSTSTATE'] = $this->getField($this->order->delivery['country']['iso_code_2']); $payDataOperacion['CSSTSTREET1'] = $this->getField($this->order->delivery['street_address']); //$payDataOperacion['CSMDD12'] = Mage::getStoreConfig('payment/modulodepago2/cs_deadline'); //$payDataOperacion['CSMDD13'] = $this->getField($this->order->getShippingDescription()); //$payData['CSMDD14'] = ""; //$payData['CSMDD15'] = ""; //$payDataOperacion['CSMDD16'] = $this->getField($this->order->getCuponCode()); $payDataOperacion = array_merge($this->getMultipleProductsInfo(), $payDataOperacion); return $payDataOperacion; }
protected function completeCFVertical() { $payDataOperacion = array(); $shippingAdress = $this->order->delivery; $this->config = $this->_get_tp_configuracion(); $this->logger->info("Parámetros para retail"); $this->logger->debug("CSSTCITY - Ciudad de envío de la orden"); $payDataOperacion['CSSTCITY'] = $this->getField($shippingAdress['city']); $this->logger->debug("CSSTCOUNTRY País de envío de la orden"); $payDataOperacion['CSSTCOUNTRY'] = $this->getField($shippingAdress['country']['iso_code_2']); $this->logger->debug("CSSTEMAIL Mail del destinatario"); $payDataOperacion['CSSTEMAIL'] = $this->getField($this->customer['email_address']); $this->logger->debug("CSSTFIRSTNAME Nombre del destinatario"); $payDataOperacion['CSSTFIRSTNAME'] = $this->getField($shippingAdress['firstname']); $this->logger->debug("CSSTLASTNAME Apellido del destinatario"); $payDataOperacion['CSSTLASTNAME'] = $this->getField($shippingAdress['lastname']); $this->logger->debug("CSSTPHONENUMBER Número de teléfono del destinatario"); $payDataOperacion['CSSTPHONENUMBER'] = phone::clean($this->getField($this->customer['telephone']), $this->logger); $this->logger->debug("CSSTPOSTALCODE Código postal del domicilio de envío"); $payDataOperacion['CSSTPOSTALCODE'] = $this->getField($shippingAdress['postcode']); $this->logger->debug("CSSTSTATE Provincia de envacute;o"); $payDataOperacion['CSSTSTATE'] = $shippingAdress['tp_state']; $this->logger->debug("CSSTSTREET1 Domicilio de envío"); $payDataOperacion['CSSTSTREET1'] = $this->getField($shippingAdress['street_address']); $this->logger->debug("CSMDD12 Shipping DeadLine (Num Dias)"); $payDataOperacion['CSMDD12'] = $this->config['deadline']; $this->logger->debug("CSMDD13 Método de Despacho"); $payDataOperacion['CSMDD13'] = $this->getField($this->order->info['shipping_method']); // $this->logger->debug("CSMDD14 Customer requires Tax Bill ? (Y/N) No"); //$payData ['CSMDD14'] = ""; //$this->logger->debug("CSMDD15 Customer Loyality Number No"); //$payData ['CSMDD15'] = ""; //$this->logger->debug("CSMDD16 Promotional / Coupon Code"); // $payDataOperacion ['CSMDD16'] = $this->getField($this->order->getCuponCode()); //OsCommerce no trae la posibilidad de usar cupones nativamente, solo se puede hacer adicionando plugins $payDataOperacion = array_merge($this->getMultipleProductsInfo(), $payDataOperacion); return $payDataOperacion; }
private function completeCF() { $payDataOperacion = array(); $payDataOperacion['AMOUNT'] = strval($this->order->info['total']); //Revisar $payDataOperacion['EMAILCLIENTE'] = $this->order->customer['email_address']; $payDataOperacion['CSBTCITY'] = $this->getField($this->order->billing['city']); $payDataOperacion['CSBTCOUNTRY'] = $this->order->billing['country']['iso_code_2']; $payDataOperacion['CSBTCUSTOMERID'] = $this->customer_id; $payDataOperacion['CSBTIPADDRESS'] = $this->get_todo_pago_client_ip(); $payDataOperacion['CSBTEMAIL'] = $this->order->customer['email_address']; $payDataOperacion['CSBTFIRSTNAME'] = $this->order->billing['firstname']; $payDataOperacion['CSBTLASTNAME'] = $this->order->billing['lastname']; $payDataOperacion['CSBTPOSTALCODE'] = $this->order->billing['postcode']; $payDataOperacion['CSBTPHONENUMBER'] = phone::clean($this->order->customer['telephone']); $payDataOperacion['CSBTSTATE'] = $this->getStateCode($this->order->billing['state']); $payDataOperacion['CSBTSTREET1'] = $this->order->billing['street_address']; //$payDataOperacion ['CSBTSTREET2'] = $this->order->billing_address_2; $payDataOperacion['CSPTCURRENCY'] = "ARS"; $payDataOperacion['CSPTGRANDTOTALAMOUNT'] = number_format($payDataOperacion['AMOUNT'], 2, ".", ""); if (!empty($this->customer)) { //CSMDD7 - Fecha Registro Comprador (num Dias) - ver que pasa si es guest"); $payDataOperacion['CSMDD7'] = $this->getDaysQty($this->customer['date_added']); //CSMDD8 - Usuario Guest? (S/N). En caso de ser Y, el campo CSMDD9 no deber´ enviarse"); $payDataOperacion['CSMDD8'] = "S"; //Customer password Hash: criptograma asociado al password del comprador final"); $payDataOperacion['CSMDD9'] = $this->customer['password']; //Histórica de compras del comprador (Num transacciones). $payDataOperacion['CSMDD10'] = $this->getQtyOrders($this->customer['customer_id']); } else { $payDataOperacion['CSMDD8'] = "N"; } //$this->log->writeTP(" CSMDD11 Customer Cell Phone"); //$payDataOperacion['CSMDD11'] = phone::clean($this->order['telephone']); return $payDataOperacion; }
<form method="post"> siteID: <select name="siteID"> <option disabled selected>Выберите сайт</option> <?php $sites = site::GETALL(); foreach ($sites as $site) { echo " <option "; echo ' value="' . $site->id . '" '; echo " > "; echo $site->name; echo " </option> "; } ?> </select> phoneID: <select name="phoneID"> <option disabled selected>Выберите телефон</option> <?php $phones = phone::GETALL(); foreach ($phones as $phone) { echo " <option "; echo ' value="' . $phone->id . '" '; echo " > "; echo $phone->name; echo " </option> "; } ?> </select> <input type="submit"> </form>
<!-- <a href="/phone">INDEX</a><br><br> --> <?php global $menuHover; $menuHover->Add("Все", "/phone"); $menuHover->Add("Новый", "/phone/new"); $menuHover->Add("Изменить", "/phone/edit/" . $args['id']); $menuHover->Add("Удалить", "/phone/delete/" . $args['id'], "return confirm('Are you sure?');"); ?> <?php phone::printOne(phone::GET($args['id'])); ?> <br><br> <a href="/phone/edit/<?php echo $args['id']; ?> ">EDIT</a><br> <br><br><h3>sites of phone</h3> <?php site::printArray(site::GETSQL("\r\n\t\tSELECT site.*\r\n\t\tFROM site, sitePhone, phone\r\n\t\tWHERE\r\n\t\t\tsite.id\t\t\t\t=\tsitePhone.siteID AND\r\n\t\t\tphone.id\t\t\t=\tsitePhone.phoneID AND\r\n\t\t\tsitePhone.deleted\t=\t'False' AND\r\n\t\t\tsitePhone.phoneID\t=\t" . $args['id']));
<!-- <a href="/phone">INDEX</a><br><br> --> <?php global $menuHover; $menuHover->Add("Все", "/phone"); $menuHover->Add("Новый", "/phone/new"); $menuHover->Add("Просмотр", "/phone/view/" . $args['id']); $menuHover->Add("Удалить", "/phone/delete/" . $args['id'], "return confirm('Are you sure?');"); ?> <form method="post"> name:<input name="name" type="text" value="<?php echo phone::GET($args['id'])->name; ?> "> <input type="submit"> </form> <!-- <a href="/phone/view/<?php echo $args['id']; ?> ">VIEW</a><br> -->
public function findByID($params) { $id_c = isset($params->id_c) ? $params->id_c : ""; try { $st = $this->db->prepare("SELECT building.adress, company.name\n\t\t\t\tFROM building\n\t\t\t\tINNER JOIN company ON (building.id_b = company.id_b) where company.id_c=:id_c"); $st->bindParam(':id_c', $id_c, PDO::PARAM_INT); $result_exec = $st->execute(); $result = $this->createDefaultResponse($st); } catch (PDOException $e) { $result = $this->createJsonError(); } //Список телефонов $phones = new phone($this->db); $phones_list = $phones->getList($params); if ($phones_list !== false) { $result->items[0]->phones = $phones_list; } //Path Breadcrumbs $catalog = new catalog($this->db); $path_breadcrumbs = ""; try { $st = $this->db->prepare("SELECT id_ca\n\t\t\t\tFROM catalog_company INNER JOIN company\n\t\t\t\tON (company.id_c = catalog_company.id_c) where company.id_c=:id_c"); $st->bindParam(':id_c', $id_c, PDO::PARAM_INT); $result_exec = $st->execute(); $st->setFetchMode(PDO::FETCH_OBJ); while ($item = $st->fetch()) { $path = $catalog->getBreadcrumbs($item); if ($path !== false) { $path_breadcrumbs .= $path; } } $result->items[0]->path = $path_breadcrumbs; } catch (PDOException $e) { $result = $this->createJsonError(); } return $result; }
<h2>INDEX</h2> <?php global $menuHover; $menuHover->Add("Все", "/phone"); $menuHover->Add("Новый", "/phone/new"); ?> <!-- <a href="/phone/new">ADD</a><br><br> --> <?php phone::printArray(phone::GETALL());
public static function setDefaultCityCode($code) { self::$_defaultCityCode = $code; }