Exemplo n.º 1
0
function getAgentCartCount()
{
    $userID = getuserID();
    $managerID = getManagerID($userID);
    $query = mysql_query("SELECT COUNT(agent_cart.id) AS cartcount FROM agent_cart LEFT JOIN agent_orders ON agent_cart.order_id = agent_orders.id WHERE agent_orders.status = 0 AND agent_orders.manager_id = '" . $managerID . "'");
    $res = mysql_fetch_array($query);
    return $res['cartcount'];
}
Exemplo n.º 2
0
} else {
    echo "";
}
?>
"></p>
					  <p><input type="time" name="startTime" value="<?php 
if (isset($_POST['startTime'])) {
    echo $_POST['startTime'];
} else {
    echo "";
}
?>
"></p>
 					  <p><?php 
if (isset($_POST['addemail'])) {
    get_times(getuserID());
}
?>
</p>
					  <p>How long with the meeting last? (hours):
					  <input type-'number' name='hours' value="<?php 
if (isset($_POST['hours'])) {
    echo $_POST['hours'];
} else {
    echo "";
}
?>
"></p>
					  <!--<p>Repeating?
			  			  <input type="radio" name="repeating" value="1" <?php 
if (isset($_POST['repeating'])) {