Ejemplo n.º 1
0
<body>
	<div class="prompt"></div>
<?php 
$this->load->view('public/page_header');
?>
    <div class="content">
		<!-- 上传文件 -->
		<div class="fn-choice" id="fn-choice">
			<button class="active" id="upolad-files">上传文件</button>
			<button id="base-choose">我的文库</button>
			<span class="color-block"></span>
		</div>
		<article class="file-content" id="file-content">
        	<?php 
$cart = new MY_Cart();
$items = $cart->getItems();
?>
            <a class="container-upload" id="container-upload" href="javascript:void(0)"
				data-num='<?php 
echo count($items);
?>
'>上传文件
				<!-- <input class="upload"
				type="file" id="file-upload" multiple 
				accept="application/msword,image/jpeg,image/png,application/vnd.ms-powerpoint,,application/nd.ms-works,application/vnd.ms-excel" /> -->
				</a>
				  <!-- <a id="uploadfiles" href="javascript:;">[Upload files]</a> -->
		</article>
		<article class="choose-base" id="choose-base">
Ejemplo n.º 2
0
 public function printSetting()
 {
     if (!empty($this->post_data)) {
         $fileMD5 = $this->post_data->fileMD5;
         $option = $this->post_data->option;
         $option_value = $this->post_data->option_value;
         $cart = new MY_Cart();
         try {
             $res = $cart->changePrintSetting($fileMD5, $option, $option_value);
             echo json_encode(array("success" => true, "single" => $res['unitPrice'], "gross" => $res['subtotal']));
         } catch (Exception $e) {
             $this->echo_msg(false);
             echo $e;
         }
     }
 }