예제 #1
0
파일: browser.php 프로젝트: G-LAB/glab-cms
	<a href="#" class="button" id="btnNewAgreement">New Agreement</a>
</div>
<div class="mid body">
	<table>
		<thead>
			<tr>
				<td>ID</td>
				<td>Name</td>
				<td>Last Updated</td>
				<td class="justr">Actions</td>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($data as $agreement) : ?>
			<tr>
				<td><?=leading_zeroes(element('agid',$agreement))?></td>
				<td><?=element('name',$agreement)?></td>
				<td><?=date_user(strtotime(element('tsUpdated',$agreement)))?></td>
				<td class="justr">
					<a href="<?=site_url('agreements/revisions/'.element('agid',$agreement))?>" class="button">View Revisions</a>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>

<div class="hide">
	<div id="dialogNewAgreement">
		<form>
			<label>Agreement Name</label>
예제 #2
0
파일: payments.php 프로젝트: G-LAB/glab-cms
<div class="mid body">
	<table>
		<thead>
			<tr>
				<td></td>
				<td>Payment #</td>
				<td>Invoice #</td>
				<td>Gateway</td>
				<td>Transaction ID</td>
				<td>Amount</td>
			</tr>
		</thead>
		<tbody>
	<?php if (count($data) > 0) : foreach ($data as $payment) : ?>
			<tr>
				<td>&nbsp;</td>
				<td><strong><?=leading_zeroes($payment['pmid'])?></strong></td>
				<td><a href="<?=site_url('billing/invoice').'/'.$payment['ivid']?>"><?=$payment['ivid']?></a></td>
				<td><?=element('gateName',$payment)?></td>
				<td><?=element('transid',$payment)?></td>
				<td>$<?=number_format(element('amount',$payment),2)?></td>
			</tr>
	<?php endforeach; else :?>
			<tr>
				<td colspan="5">No payments have been made.</td>
				<td></td>
			</tr>
	<?php endif; ?>
		</tbody>
	</table>	
</div>
예제 #3
0
파일: products.php 프로젝트: G-LAB/glab-cms
		<thead>
			<tr>
				<td></td>
				<td>SKU</td>
				<td>Item</td>
				<td class="justr">Price*</td>
				<td class="justr">Cost*</td>
				<td class="justr">Weight</td>
				<td class="justr">Taxable</td>
			</tr>
		</thead>
		<tbody>
	<?php foreach ($data as $product) : ?>
			<tr>
				<td><input type="checkbox" value="<?=element('sku',$product)?>" <?php if (element('status',$product)==1): ?>checked="checked" <?php elseif (element('status',$product)==2): ?>disabled="disabled" <?php endif; ?>class="prodStatus"/></td>
				<td><a href="<?=site_url('billing/product/'.element('sku',$product))?>"><?=leading_zeroes(element('sku',$product),7)?></a></td>
				<td><strong class="rtrim"><?=element('name',$product)?></strong></td>
				<td class="justr"><?php if (element('priceUnit',$product) == 'nc') echo 'nc'; else echo '$'.element('price',$product).'/'.element('priceUnit',$product); ?></td>
				<td class="justr">$<?=element('cost',$product)?></td>
				<td class="justr"><?=element('weight',$product)?> lbs</td>
				<td class="justr"><?php 
									switch (element('isTaxable',$product)) { 
										case 0: 
											echo 'No'; 
											break; 
										case 1: 
											echo 'Yes'; 
											break; 
									} ?></td>
			</tr>
	<?php endforeach; ?>
예제 #4
0
	if ($qtySum == round($qtySum)) $qtyModeRound = TRUE;
	
	foreach ($items as $item) : ?>
			<?php
				
				// Calculate Shipping Weight
				global $weight;
				$weight = $weight+element('weight',$item);
				
				// Calculate Taxable Sum
				global $taxable;
				if (element('taxable',$item)) $taxable = $taxable+element('extended',$item);
	
			?>
			<tr>
				<td><?=leading_zeroes(element('sku',$item),7)?></td>
				<td><strong><?=element('name',$item)?></strong></td>
				<td class="justr"><?=(element('currentPrice',$item)) ? element('currentPrice',$item).' /'.element('priceUnit',$item) : 'nc'?></td>
				<td class="justr"><?=($qtyModeRound) ? round(element('orderQty',$item)) : element('orderQty',$item)?>&nbsp;</td>
				<td class="justr"><?=number_format(element('extended',$item),2)?></td>
			</tr>
	<?php endforeach; ?>
	<?php if (!isset($item)) : ?>
			<tr>
				<td colspan="5">There are no items in this order.</td>
			</tr>
	<?php endif; ?>
		</tbody>
		<tfoot>
			<?php
				
예제 #5
0
	<h3><?=$name?></h3>
</div>
<div class="mid body">
	<table>
		<thead>
			<tr>
				<td>ID</td>
				<td>Revision Date</td>
				<td>Effective Date</td>
				<td class="justr">Actions</td>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($data as $revision) : ?>
			<tr>
				<td><?=leading_zeroes(element('agrvid',$revision))?></td>
				<td><?=date_user(strtotime(element('tsCreated',$revision)))?></td>
				<td><?=date_user(strtotime(element('tsEffective',$revision)))?></td>
				<td class="justr">
					<a href="<?=site_url('agreements/view_revision/'.element('agrvid',$revision))?>" class="button">View Revision</a>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>
<?php else: ?>
<div class="mid body">
	This agreement has no revisions.  <br/><br/>
	<a href="<?=site_url('agreements/new_revision/'.$agid)?>" class="button">Create First Revision</a>
</div>
예제 #6
0
<div class="mid header">
<h4><?=element('name',$data)?></h4>
<p>SKU: <?=leading_zeroes(element('sku',$data),7)?></p>
</div>

<form method="post" class="generic" id="formUpdateProduct">
	<div class="mid body">
		<label>Product Name</label>
		<input name="name" value="<?=element('name',$data)?>"/>

		<label>Price (USD)</label>
		<input name="price" id="price" class="doublefloat" value="<?=element('price',$data)?>"/>
		<?php $priceUnits = array('ea'=>'Each','cs'=>'Per Case','hr'=>'Per Hour','nc'=>'No Charge') ?>
		<?=form_dropdown('priceUnit',$priceUnits,element('priceUnit',$data),'id="priceUnit"')?>

		<label>Cost Per Unit (USD)</label>
		<input id="cost" name="cost" class="doublefloat" value="<?=element('cost',$data)?>"/>

		<label>Sales/Revenue Account</label>
		<input id="accountSearchSales"value="<?=element('revenueAccName',$data)?>"/>
		<input type="hidden" name="revenueAcid" value="<?=element('revenueAcid',$data)?>"/>
		
		<label>Cost Account</label>
		<input id="accountSearchCost" value="<?=element('costAccName',$data)?>"/>
		<input type="hidden" name="costAcid" value="<?=element('costAcid',$data)?>"/>
		
		<label>Weight (US LBS)</label>
		<input name="weight" class="doublefloat" value="<?=element('weight',$data)?>"/>
		
		<label>Quanity (Min-Max)</label>
		<div id="qtyRange">