Esempio n. 1
0
function format_single($records, $loggedin_user)
{
    $out = '';
    foreach ($records as $rec) {
        // Display the title
        $out .= '<h2>' . get_basic_info($rec, $loggedin_user) . '</h2>';
        $out .= run_plugins('detail_above', $rec, $loggedin_user);
        // Display the main bulk of the record
        $out .= get_detail($rec, $loggedin_user);
        $out .= run_plugins('detail_below', $rec, $loggedin_user);
    }
    $ret = array('data' => $out, 'content_type' => 'text/html');
    return $ret;
}
Esempio n. 2
0
<meta name="format-detection" content="telephone=no">
<title>详细信息</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link rel="stylesheet" type="text/css" href="/statics/css/yumleeM.css" />
<link rel="stylesheet" type="text/css" href="/statics/css/mcr.css" />
<link rel="stylesheet" type="text/css" href="/statics/css/photoswipe.css" />
<link rel="stylesheet" type="text/css" href="/com/icomoon/style.css" />
<link rel="stylesheet" type="text/css" href="/com/swiper/swiper.min.css" />
<link rel="stylesheet" type="text/css" href="/com/lightGallery/lightGallery.css" />
</head>
<?php 
session_start();
include_once 'mcr_sc_fns.php';
$productid = $_GET['productid'];
$product_array = get_detail($productid);
$productpic_array = get_productpic($productid);
?>
<body>

<header class="header">
	<div><a href="javascript:history.back();"><i class="icon-angle-left"></i></a></div>
	<h1>详细信息</h1>
	<div><a href="index.php"><i class="icon-home"></i></a></div>
</header>
<?php 
if (!is_array($product_array)) {
    $noconnect = "<p>对不起,没有查找到您要查找的内容!</p>";
    echo $noconnect;
} else {
    $row = $product_array[0];
Esempio n. 3
0
<?php

// CALL FUNCTION
$courier = get_detail($ship_id);
$shipping = get_shipping($ship_id);
$service = $courier['services'];
$international = international($ship_id);
if ($service == "Local Only") {
    $title = "Local";
} else {
    if ($service == "International Only") {
        $title = "International";
    } else {
        $title = "Local";
    }
}
$country = get_country();
if (isset($_POST['btn-edit-shipping'])) {
    // DEFINED VARIABLE
    $courier_ids = $_REQUEST['sid'];
    $courier_name = $_POST['courier_name'];
    $courier_description = $_POST['description'];
    $courier_service = $_POST['courier_service'];
    $courier_weight = $_POST['courier_weight'];
    $courier_id = $_POST['city_name'];
    $courier_rate = clean_price($_POST['courier_rate']);
    if ($_POST['btn-edit-shipping'] != "Delete") {
        update_local_courier($courier_name, $courier_description, $courier_service, 'Active', $courier_weight, $courier_ids);
        // RATE
        foreach ($courier_id as $index => $courier_id) {
            update_local_rate($courier_rate[$index], $courier_weight, $courier_id);
Esempio n. 4
0
                         </select>
                       </th>
                     </tr>
                   </thead>
                   
                   <tbody>
                     
					 <?php 
if ($total_query < 1) {
    echo '<tr><td class="no-record" colspan="8">No records found.</td></tr>';
}
$row = 0;
foreach ($listing_order as $all_category) {
    $row++;
    // CALL FUNCTION
    $detail = get_detail($all_category['career_id']);
    ?>
                     
                     <tr id="<?php 
    echo "row_" . $row;
    ?>
" onclick="selectRow('<?php 
    echo $row;
    ?>
')">
                     <td>
                       <input type="checkbox" name="category_id[]" value="<?php 
    echo $all_category['career_id'];
    ?>
" id="<?php 
    echo "check_" . $row;
Esempio n. 5
0
<?php

// include PHP functions from mylib.php
include 'mylib.php';
// test if input parameter is set
if (isset($_GET['id'])) {
    $id = $_GET['id'];
} else {
    $id = 0;
}
// get person's details
$person = get_detail($id);
// get first name, last name and email
$fname = $person[0];
$lname = $person[1];
$email = $person[2];
?>
<!-- form with displayed details -->
<form id="myform" class="myform" method="post" action="db_save.php">
	<h1>Person id <?php 
print $id;
?>
</h1>

	<label for="name">First Name</label>
	<br/>
	<input type="text" id="fname" name="fname" value="<?php 
print $fname;
?>
" class="text" />
	<br/>
Esempio n. 6
0
<?php

$type = $_REQUEST['type'];
switch ($type) {
    case 'detail':
        get_detail();
        break;
    case 'detail2':
        get_detail2();
        break;
    case 'all':
        get_all();
        break;
    default:
        echo json_encode([]);
}
function get_all()
{
    header('Content-Type: application/json');
    $datas = ['total' => [['name' => '总收入', 'value' => 12345]], 'detail' => [['game' => '口水三国', 'basedata' => [['name' => '收入', 'value' => 100], ['name' => '日活跃', 'value' => 200], ['name' => '付费用户', 'value' => 50], ['name' => '付费率', 'value' => '1%'], ['name' => 'ARPPU', 'value' => 54]]], ['game' => '塔塔塔防', 'basedata' => [['name' => '收入', 'value' => 100], ['name' => '日活跃', 'value' => 200], ['name' => '付费用户', 'value' => 50], ['name' => '付费率', 'value' => '1%'], ['name' => 'ARPPU', 'value' => 54]]]]];
    echo json_encode($datas);
}
function get_detail()
{
    if ($_POST) {
        header('Content-Type: application/json');
        $datas = [['base' => [['name' => '收入', 'value' => 100], ['name' => '日活跃', 'value' => 200], ['name' => '付费用户', 'value' => 50], ['name' => '付费率', 'value' => '1%'], ['name' => 'ARPPU', 'value' => 54]], 'remain' => [['name' => '次日留存', 'value' => '50%'], ['name' => '3日留存', 'value' => '40%'], ['name' => '4日留存', 'value' => '30%']]], ['base' => [['name' => '收入2', 'value' => 100], ['name' => '日活跃2', 'value' => 200], ['name' => '付费用户2', 'value' => 50], ['name' => '付费率2', 'value' => '1%'], ['name' => 'ARPPU2', 'value' => 54]], 'remain' => [['name' => '次日留存2', 'value' => '50%'], ['name' => '3日留存2', 'value' => '40%'], ['name' => '4日留存2', 'value' => '30%']]]];
        $time = $_POST['datetime'];
        $k = date('d', $time) % 2;
        $data = $datas[$k];
        echo json_encode($data);
Esempio n. 7
0
function show_edit_detail_form($config, $id)
{
    $detail = get_detail($config, $id);
    if ($detail) {
        show_detail_form("edit", $config, $detail);
    } else {
        echo "<p>Error: Can't get detail that has id = {$id}</p>";
    }
}
Esempio n. 8
0
    ?>
</td>
                <td><?php 
    echo $item['reference_no'];
    ?>
</td>
                <td><?php 
    echo $item['supplier_name'];
    ?>
</td>
                <td><?php 
    echo format_rupiah($item['total']);
    ?>
</td>                       
                <td><?php 
    echo get_detail($item['id']);
    ?>
</td>
              </tr>

              <?php 
}
?>

            </tbody>
          </table>
        </div>
      </div>
      <!-- END EXAMPLE TABLE PORTLET-->
    </div>
  </div>
Esempio n. 9
0
<?php

require_once 'data/_data.php';
require_once 'header.php';
?>

<div class="content-block">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <?php 
foreach (get_detail() as $tempid => $detail_data) {
    ?>
                    <br/><br/>
                    <img src="<?php 
    echo $detail_data['image'];
    ?>
"/>
                    <p><?php 
    echo $tempid;
    echo $detail_data['titre'];
    ?>
</p>
                    <p><?php 
    echo $tempid;
    echo $detail_data['description'];
    ?>
</p>

                    <a href="login.php?tempid=<?php 
    echo $tempid;
Esempio n. 10
0
 public function daftar_purchase()
 {
     $this->datatables->select('id,date,reference_no,supplier_name,total')->edit_date('date', '$1', 'date')->edit_currency('total', '$1', 'total')->add_column('Actions', get_detail('$1'), 'id')->from('atombizz_purchases');
     echo $this->datatables->generate();
 }
<?php

include "interface.php";
list($prod1, $ver1, $ts1) = get_detail($_POST["path1"]);
list($prod2, $ver2, $ts2) = get_detail($_POST["path2"]);
$rows1 = getAllSumData($prod1, $ver1, $ts1);
$rows2 = getAllSumData($prod2, $ver2, $ts2);
$retArray = array(array(), array());
function get_detail($str)
{
    return explode(":", $str);
}
$index = 0;
array_push($retArray[0], "<table border='1'>");
foreach ($rows1 as $row) {
    if ($index == 0) {
        array_push($retArray[0], "<tr><th colspan='" . (count($row) + 1) . "'>{$prod1} - {$ver1} - {$ts1}(" . date("Y-m-d H:i:s", $ts1) . ")</th></tr>");
        array_push($retArray[0], "<tr><th>行号</th><th>" . implode("</th><th>", $row) . "</th></tr>");
    } else {
        array_push($retArray[0], "<tr><th>{$index}</th><td>" . implode("</td><td>", $row) . "</td></tr>");
    }
    $index += 1;
}
array_push($retArray[0], "</table>");
$index = 0;
array_push($retArray[1], "<table border='1'>");
foreach ($rows2 as $row) {
    if ($index == 0) {
        array_push($retArray[1], "<tr><th colspan='" . (count($row) + 1) . "'>{$prod2} - {$ver2} - {$ts2}(" . date("Y-m-d H:i:s", $ts2) . ")</th></tr>");
        array_push($retArray[1], "<tr><th>行号</th><th>" . implode("</th><th>", $row) . "</th></tr>");
    } else {
Esempio n. 12
0
function getPricingFormula($focus, $field = 'pricing_formula', $value, $view = 'DetailView')
{
    require_once 'modules/ProductTemplates/Formulas.php';
    refresh_price_formulas();
    if ($view == 'EditView' || $view == 'MassUpdate') {
        global $app_list_strings;
        $html = "<select id=\"{$field}\" name=\"{$field}\"";
        if ($view != 'MassUpdate') {
            $html .= " language=\"javascript\" onchange=\"show_factor(); set_discount_price(this.form);\"";
        }
        $html .= ">";
        $html .= get_select_options_with_id($app_list_strings['pricing_formula_dom'], $focus->pricing_formula);
        $html .= "</select>";
        $html .= "<input type=\"hidden\" name=\"pricing_factor\" id=\"pricing_factor\" value=\"1\">";
        $formulas = get_formula_details($focus->pricing_factor);
        $html .= get_edit($formulas, $focus->pricing_formula);
        return $html;
    }
    return get_detail($focus->pricing_formula, $focus->pricing_factor);
}
Esempio n. 13
0
<html>

<head>
    <style>
        a {text-decoration: none}
    </style>
</head>

<body>
<?php 
include "interface.php";
list($prod, $ver, $ts, $time) = get_detail($_GET["info"]);
$sortName = getParam("sortName", "");
$sortType = getParam("sortType", 1);
$rows = getDetailData($prod, $ver, $ts, $time, $sortName, $sortType * -1);
function get_detail($str)
{
    return explode(":", $str);
}
function getParam($paramName, $defValue)
{
    global $_GET;
    if (array_key_exists($paramName, $_GET)) {
        return $_GET[$paramName];
    }
    return $defValue;
}
?>

<table border='1'>
<?php 
Esempio n. 14
0
	.swiper-container.company {width: 320px;height: 100px;margin: 0 auto;overflow:hidden;}
	.swiper-container.company img{width:60px;height:60px;}
	.swiper-container.company ul li{text-align: center;margin-top: 20px;}
</style>
</head>
<?php 
session_start();
include_once 'mcr_sc_fns.php';
require_once 'system/model/weixin.class.php';
$userid = 0;
if (isset($_SESSION['userid'])) {
    $userid = $_SESSION['userid'];
}
//echo $userid;
$cdkey = $_GET['cdkey'];
$product_array = get_detail($cdkey, $userid);
//echo $product_array;
$productpic_array = get_productpic($cdkey);
$weixin = new class_weixin();
$signPackage = $weixin->GetSignPackage();
$title = "木材人信息交流平台";
$description = "木材人信息平台木材人自己的家";
$picurl = 'http://www.sxuav.com/images/mcrwx.jpg';
$url = 'http://www.sxuav.com/detail.php?cdkey=' . $cdkey;
?>
<body>

<header class="header">
	<div><a href="javascript:history.back();"><i class="icon-arrow-back"></i></a></div>
	<h1>详细信息</h1>
	<div><a href="index.php"><i class="icon-home"></i></a></div>
<?php

include "interface.php";
list($prod1, $ver1, $ts1) = get_detail($_POST["path1"]);
$rows1 = getAllSumData($prod1, $ver1, $ts1);
$retArray = array();
function get_detail($str)
{
    return explode(":", $str);
}
$index = 0;
array_push($retArray, "<table border='1'>");
foreach ($rows1 as $row) {
    if ($index == 0) {
        array_push($retArray, "<tr><th colspan='" . (count($row) + 1) . "'>{$prod1} - {$ver1} - {$ts1}(" . date("Y-m-d H:i:s", $ts1) . ")</th></tr>");
        array_push($retArray, "<tr><th>行号</th><th>" . implode("</th><th>", $row) . "</th></tr>");
    } else {
        array_push($retArray, "<tr><th>{$index}</th><td>" . implode("</td><td>", $row) . "</td></tr>");
    }
    $index += 1;
}
array_push($retArray, "</table>");
echo implode("\n", $retArray);