Esempio n. 1
0
function getdetail($data)
{
    $url = "http://www.kuaidi100.com/query?type=" . getcompany($data) . "&postid=" . $data;
    $get = getcurl($url);
    $arr = json_decode($get, true);
    $message = $arr['message'];
    if (!$message == 'ok') {
        $result = false;
    } else {
        $data = array_slice($arr['data'], 0, 6);
        $arrs = array();
        foreach ($data as $v) {
            $arrs[] = " " . $v['time'] . "\n" . $v['context'];
        }
        $result = $arrs;
    }
    return $result;
}
Esempio n. 2
0
 $categ = $_GET['categ'];
 $pid = $_GET['pid'];
 $name = $_GET['name'];
 $phone = $_GET['phone'];
 echo ' <div id="pages_maincontent">
    <h2 class="page_title">Add Leads</h2>
     <div class="cleaner_h10"></div>
     <p class="leadp">Counter check this information:</p>
      <div class="contactform">
     <form>
      <label>Product Details:</label>
      <input type="hidden" value="' . $cid . '" id="cid"/>
      <input type="hidden" value="' . $pid . '" id="pid"/>
      <input type="hidden" value="' . $categ . '" id="categid"/>
      <input type="hidden" value="' . $bid . '" id="bid"/>
      <input placeholder="Company Name" type="text" id="comname" value="' . getcompany($cid) . '" class="form_input required" disabled="disabled" />
      <input placeholder="Branch Name" type="text" id="branchname" value="' . getbranch($bid) . '" class="form_input required" disabled="disabled" />
      <input placeholder="Product Category" type="text" id="categname" value="' . getcateg($categ) . '" class="form_input required" disabled="disabled" />
      <input placeholder="Product Name" type="text" id="productname" value="' . getproduct($pid) . '" class="form_input required" disabled="disabled" />
     
     <label>Contact Details:</label>
     <input type="text"  id="ContactName" value="' . $name . '" class="form_input required name" placeholder="Name" />
     <input type="text"  id="ContactPhone" value="' . $phone . '" class="form_input required phone" placeholder="Phone" />
     <label>Additional Details:</label>
     <input type="text" name="ContactEmail" id="ContactEmail" value="" class="form_input required email" placeholder="Email" />
     <textarea name="ContactComment" id="ContactComment" class="form_textarea textarea required" rows="" cols="5" placeholder="Additional details/Comments"></textarea>
     <input type="button" name="submit" class="form_submit" id="submit" value="Add Lead" onclick="addlead()" />
     <label id="loader"></label>
     </form>
     </div>
      </div>';
Esempio n. 3
0
}
if (strtotime($endDate) < strtotime($beginDate)) {
    print "*** " . $beginDate . " is *after* {$endDate}\n";
    $oops = true;
}
if ($oops) {
    Usage($argv[0]);
    exit;
}
print "\n";
$_POST['AllCompanies'] = "SET";
$companies = getcompaniestable($db, $mainSearchKey);
$companiesidxmax = count($companies) - 1;
while ($j <= $companiesidxmax) {
    $text_array = array();
    $company = getcompany($db, $companies[$j]);
    $comptext = $company[9] . "\n";
    $text_array = process_text($comptext, $beginDate, $endDate);
    if (!empty($text_array)) {
        print $companies[$j] . "\n";
        for ($i = 0; $i < sizeof($text_array); $i++) {
            print $text_array[$i];
        }
        print "********************************************\n\n";
    }
    $j++;
}
function checkIsAValidDate($myDateString)
{
    return (bool) strtotime($myDateString);
}
Esempio n. 4
0
<?php

require_once 'login.php';
require_once 'connect.php';
require_once 'db_tools.php';
$myresult = "";
$state = "";
$employer_status = "";
$headhunter_status = "";
$disabledflag = "";
session_start();
if (isset($_POST['EditCompany'])) {
    $compname = $_SESSION['company_to_edit'];
    $_SESSION['oldcompname'] = $compname;
    $_SESSION['compname'] = $compname;
    $company = getcompany($db, $compname);
    $compstreet1 = $company[1];
    $compstreet2 = $company[2];
    $compcitystatezip = $company[3];
    $comptype = $company[4];
    $compwebsite = $company[5];
    $compemail = $company[6];
    $compphone = $company[7];
    $compfax = $company[8];
    $comptext = $company[9];
    $compactive = $company[10];
    $state = "";
} elseif (isset($_POST['EditCompanySubmit'])) {
    $oldcompname = $_SESSION['oldcompname'];
    $compname = $_POST['compname'];
    $compstreet1 = $_POST['compstreet1'];