Esempio n. 1
0
 /**
  * 指定された文字列をインデントして追記します.
  * @param string $contents
  */
 private function append($contents)
 {
     $result = $this->indent->indent() . $contents . $this->indent->breakCode();
     if ($this->echoMode) {
         echo $result;
     }
     $this->result .= $result;
 }
Esempio n. 2
0
<?php

require_once '../../lib/defination.class.php';
include '../../lib/supplier.class.php';
include '../../lib/stock.class.php';
include '../../lib/purchaseOrder.class.php';
include '../../lib/indent.class.php';
$stock = new Stock();
$output = options_for_select($stock->retriveStockItem(), 'stock_item_id', 'stock_item_name');
// get suppliers info for combo box;
$Supplier = new Supplier();
$outputSupplierItem = options_for_select($Supplier->retriveSupplierInfo(), 'sup_id', 'sup_name', true);
$Indent = new Indent();
$outputIndentNo = options_for_select($Indent->retriveIndendInfo(), 'indent_id', 'indent_id', true);
?>
<link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" />

 <div class="rightcontent1">
        <div class="bodybanner1"></div>
        <div class="bodybanner2"></div>
        <div class="bodybanner3"></div>

<form id="mrrForm" name="mrrForm" method="post"  onsubmit="return saveFormData(mrrForm)" action="includes/model/mrr_order_actions.php" >
	<div id="ajax_content">
	<div class='morelabel'>
		<p>
			<label>  Date </label>
          <input type="text" name="date_of_submit" value="" id="submit_date" class="date" />
    	</p>
          
		<p>


<?php 
require_once '../../lib/indent.class.php';
$indent_ms_id = (int) $_GET[indent_ms_id];
$Indent = new Indent();
//$indent = $indent->RetriveIndentByMsId($indent_ms_id);
$indendMasterData = $Indent->RetriveIndentInfoByIndendId($indent_ms_id);
$rowIndendMaster = count($indendMasterData);
?>
<style type="text/css">
<!--
.style1 {	
font-size: 14px;
font-weight: bold;
}

.font_content {
font-size:10px;
}

.style11 {
font-size:12px;
font-weight:bold;
}
-->
</style>
<link href="../../css/report.css" rel="stylesheet" type="text/css" />

Esempio n. 4
0
<?php

require_once '../../lib/helper_functions.php';
include '../../lib/indent.class.php';
include '../../lib/requisition.class.php';
$indent = new Indent();
$requisition = new Requisition();
$num = $indent->getNewIndentId();
?>




<form id="requisitionForm" name="requisitionForm" method="post"   action="includes/model/indent_actions.php" >
	<div id="note"> </div>
	<div class="morelabels">
			
		<p>
			<label>	Indent Code:</label>
			<input type="text" name="indent_code" 
				value="<?php 
echo generate_timestamp("indent", $num);
?>
"
				 id="indent_code" />
		</p>	
		
		<p>
			<label>Date :</label>
			<input type="text" name="date_of_submit" value="" class="date"  />
		</p>
Esempio n. 5
0
<?php

session_start();
require_once '../../lib/requisition.class.php';
require_once '../../lib/indent.class.php';
extract($_POST);
$indent = new Indent();
$requisition = new Requisition();
$num = $indent->getNewIndentId();
$getData = "'{$num}','{$indent_code}','{$indent_remark}','{$date_of_submit}'";
extract($indent->CreateIndentMaster($getData));
$getData = '';
$counter = $id;
for ($i = 0; $i < count($indent_item_qty); $i++) {
    $getData = "'null',\t{$counter},\n\t\t\t\t\t\t\t\t{$stock_item_id[$i]},\n\t\t\t\t\t\t\t\t{$indent_item_qty[$i]},\n\t\t\t\t\t\t\t\t{$requisition_id[$i]}";
    $indent->CreateIndentDetails($getData);
    $indent->updateReqStatus($requisition_id[$i]);
}
echo "<b> Indent Created</b>";
<?php

require_once '../../lib/defination.class.php';
require_once "../../lib/quotation.class.php";
include '../../lib/indent.class.php';
$Indent = new Indent();
$outputIndend = options_for_select($Indent->retriveIndendInfo(), 'indent_id', 'indent_code', true);
$indent_ms_id = $_POST[$selIndend];
$indendMasterData = $Indent->RetriveIndentInfoByIndendId($indent_ms_id);
$rowIndendMaster = count($indendMasterData);
?>

<div class="rightcontent1">
        <div class="bodybanner1"></div>
        <div class="bodybanner2"></div>
        <div class="bodybanner3"></div>
    </div>
<form id="supplierForm" name="supplierForm" method="post"  onsubmit="return saveFormData(supplierForm)"  >
	<table width="100%" border="0" class="form" >
		<tr>
		  <th colspan="5">Quotation Comparison Report </th>
	  </tr>
		<tr>
		  <th width="157" align="right">Indend</th>
	      <th width="824" colspan="4" align="left"><select name="indentNo" id="indentNo">
            <?php 
echo $outputIndend;
?>
          </select></th>
	  </tr>
		<tr>
Esempio n. 7
0
 /**
  * breakCode() のテストです. 以下を確認します.
  * 
  * - コンストラクタに指定した文字列を返すこと
  * - コンストラクタ引数を省略した場合は, CRLF を返すこと
  * 
  * @covers Peach\Markup\Indent::breakCode
  */
 public function testBreakCode()
 {
     $i1 = new Indent(0, Indent::TAB, Indent::LF);
     $this->assertSame("\n", $i1->breakCode());
     $i2 = $this->object;
     $this->assertSame("\r\n", $i2->breakCode());
 }
 /**
  * @return int
  */
 public function getIndentHtml()
 {
     return $this->indent->getHtmlIndent();
 }