コード例 #1
0
ファイル: edit.php プロジェクト: athenasystems/athena
	enctype="multipart/form-data" method="post">
	<h3>Quote No: <?php 
echo $r->quotesid;
?>
</h3>
	<fieldset>

<?php 
if (!$r->incept) {
    $r->incept = time();
}
// Quotes submitted via Control Panel have no Quote Date initially
$value = date("Y-m-d", $r->incept);
html_dateselect("Date", "incept", $value);
customer_select("Customer", "custid", $r->custid, 0, 'required');
custcontact_select("External Contact", "contactsid", $r->contactsid, $r->custid);
staff_select("Internal Contact", "staffid", $r->staffid);
html_textarea("Quote Description *", "content", $r->content, "body", 'required');
html_text("Price *", "price", $r->price, 'required');
html_textarea("Notes", "notes", $r->notes, "notes");
?>
Making a Quote as Live means it can be seen by customer in the
			Customer Control Panel

<?php 
$chkd = $r->live ? 1 : 0;
html_checkbox('Make it Live?', 'live', 1, $chkd);
?>

</fieldset>
コード例 #2
0
ファイル: edit.php プロジェクト: athenasystems/athena
?>
?id=<?php 
echo $_GET['id'];
?>
&amp;go=y"
	enctype="multipart/form-data" method="post" name="editcust">

	<fieldset>
		<h3>Company Details</h3>
	
			<?php 
html_text("Company Name", "co_name", $r->co_name);
if (!isset($r->inv_contact)) {
    $r->inv_contact = '';
}
custcontact_select("Invoice Contact", "contactsid", $r->inv_contact, $_GET['id']);
?>
		
			
			<div class="form-group">
			<label for="colour">Colour&nbsp; <span style="width:10px;background-color:<?php 
echo $r->colour;
?>
;float:right;margin-right:5px;">&nbsp;</span>&nbsp;
			</label> <input type="text" name="colour" value="<?php 
echo $r->colour;
?>
"> <a
				href="javascript:TCP.popup(document.forms['editcust'].elements['colour'])"> <img width="15" height="13" border="0"
				alt="Click Here to Pick up the color" src="/img/sel.gif">
			</a>