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



	<fieldset>

	

			<?php 
html_text("First Name", "fname", $r->fname, 'required');
html_text("Surname", "sname", $r->sname);
html_text("Company Name", "co_name", $r->co_name);
customer_select("Customer", "custid", $r->custid);
supplier_select("Supplier", "suppid", $r->suppid);
html_text("Role", "role", $r->role);
html_textarea("Notes", "notes", $r->notes, "notes");
include "/srv/athenace/lib/shared/adds.edit.form.php";
?>

	</fieldset>

	<fieldset class="buttons">

		<?php 
html_button("Save changes");
?>

		or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a>
コード例 #2
0
ファイル: add.php プロジェクト: athenasystems/athena
	<fieldset>

		<h3>Personal Details</h3>

			<?php 
html_text("First Name *", "fname", $_POST['fname']);
html_text("Surname", "sname", $_POST['sname']);
?>

<h3>Company Details</h3>
<?php 
html_text("Company Name", "co_name", $_POST['co_name']);
if (!isset($_POST['custid'])) {
    $_POST['custid'] = $_GET['custid'];
}
customer_select("Or", "custid", $_POST['custid']);
if (!isset($_POST['suppid'])) {
    $_POST['suppid'] = $_GET['suppid'];
}
supplier_select("Or", "suppid", $_POST['suppid']);
html_text("Role", "role", $_POST['role']);
include "/srv/athenace/lib/shared/adds.add.form.php";
html_textarea("Notes", "notes", $_POST['notes'], "body");
?>

	</fieldset>

	<fieldset class="buttons">

		<?php 
html_button("Save changes");
コード例 #3
0
ファイル: add.php プロジェクト: athenasystems/athena
		
			<?php 
if (!isset($_POST['custid'])) {
    $_POST['custid'] = 0;
}
if (!isset($_POST['price'])) {
    $_POST['price'] = '';
}
if (!isset($_POST['content'])) {
    $_POST['content'] = '';
}
if (!isset($_POST['notes'])) {
    $_POST['notes'] = '';
}
customer_select("Customer *", "custid", $_POST['custid'], 0, 'required');
html_textarea("Quote Description *", "content", $_POST['content'], "body", 'required');
html_text("Price *", "price", $_POST['price'], 'required');
html_textarea("Internal Notes (not seen by Customer)", "notes", $_POST['notes'], "notes");
?>

	</fieldset>

	<fieldset class="buttons">
		<?php 
html_button("Save Quote");
?>
	</fieldset>
</form>
<br>
<br>
コード例 #4
0
ファイル: edit.php プロジェクト: athenasystems/athena
&amp;go=y"
	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>
コード例 #5
0
<div class="panel panel-default">
	<div class="panel-body">
		<form role="form" action="" id="searchform" class="form-inline">
			<div class="pull-left">
		<label for="q">Search </label>
		<input name="q" id="q" value="<?php 
echo $_GET['q'];
?>
" class="form-control" type="text" placeholder="<?php 
echo $txtPlaceholder;
?>
">
		
<?php 
customer_select("&nbsp;Or&nbsp;", "custid", $_GET['custid'], 1);
?>
 <input type="submit" value="Search">
	</div>
			<input type="hidden" id="from" name="from" value="<?php 
echo $from;
?>
">

			<div class="pull-right">
			
			<?php 
echo $searchRes;
perpage_select('Per Page', 'perpage', $perpage, '', $idNo);
?>