當前位置: 首頁>>代碼示例>>PHP>>正文


PHP client::addClient方法代碼示例

本文整理匯總了PHP中client::addClient方法的典型用法代碼示例。如果您正苦於以下問題:PHP client::addClient方法的具體用法?PHP client::addClient怎麽用?PHP client::addClient使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在client的用法示例。


在下文中一共展示了client::addClient方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: addOrder

 function addOrder()
 {
     if ($_POST['cl_id'] < 0) {
         $client = new client();
         $client->addClient();
         $client->existClient();
     }
     $ord_cl_id = $_POST['cl_id'];
     $ord_bike = $_POST['ord_bike'];
     //$ord_start_job = strtotime($_POST['ord_date_start']);
     $ord_start_job = $_POST['ord_date_start'];
     $ord_internal_note = $_POST['ord_internal_note'];
     $query = "INSERT INTO `order`(`ord_cl_id`,`ord_bike`,`ord_start_job`,`ord_internal_note`) \n\t\t\t\t\t\t\tVALUES ('{$ord_cl_id}','{$ord_bike}', STR_TO_DATE('{$ord_start_job}','%d.%m.%Y'),'{$ord_internal_note}')";
     $database = new database();
     $database->dbQuery($query);
     //return $query;
     return $_POST['cl_id'];
 }
開發者ID:RonLab1987,項目名稱:vm-crm,代碼行數:18,代碼來源:order_class.php

示例2: client

                            </div>
                            <span><input type="submit" name="addorder" class="mybutton" value="ارسال"></span>
                    </div>
                    </form>
                    <?php 
if (isset($_POST['addorder']) && $_POST['addorder'] != '') {
    $name = secure_variable($_POST['userName']);
    $email = secure_variable($_POST['userEmail']);
    $phone = secure_variable($_POST['userPhone']);
    $message = secure_variable($_POST['userMsg']);
    $attach = $_FILES['image']['name'];
    if (isset($attach)) {
        move_uploaded_file($_FILES['image']['tmp_name'], 'admin/order_img/' . $attach);
    }
    $client = new client();
    $addClient = $client->addClient($con, $name, $email, $phone);
    $last_insert_id = mysqli_insert_id($con);
    if ($addClient == 'done') {
        $contact = $client->insertOrder($con, $message, $last_insert_id);
        if ($contact == 'done') {
            echo 'تم الارسال';
            //                                require_once('classes/class.phpmailer.php');
            //
            //                                $mail = new PHPMailer();
            //
            //                                $mail->IsSendmail(); // telling the class to use SendMail transport
            ////                                $body = file_get_contents('contents.html');
            //                                $body = eregi_replace("[\]", '', $body);
            //
            //                                $mail->AddReplyTo("dev.abdallah.ragab@gmail.com", "First Last");
            //
開發者ID:CATReloaded,項目名稱:PhotoGallery,代碼行數:31,代碼來源:contact.php


注:本文中的client::addClient方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。