function DoHead()
{
    include "header.php";
    OpenTable();
    ?>
	<center><b><strong>
		&middot; <a href="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
">Administration Home</a> &middot;<br>
		&middot; <a href="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
?op=Accounting">Accounting Admin</a> &middot;
<?php 
    include "modules/Accounting/updater.php";
    if (isUpdate()) {
        ?>
		<br>&middot;&middot;&middot; <a href="http://moahosting.com/modules.php?name=Downloads&d_op=viewdownload&cid=2">An update is available!</a> &middot;&middot;&middot;<br>
<?php 
    }
    ?>
	</strong></b></center>
<?php 
    CloseTable();
    echo "<br>";
    OpenTable();
    // Create the accounting menu
    DoMenu();
}
Ejemplo n.º 2
0
function do_head()
{
    include "header.php";
    //GraphicAdmin();
    OpenTable();
    ?>
	<center><b><strong>&middot; <a href="admin.php">Administration Home</a> &middot;</strong></b></center><br>
	<center><b><strong>&middot; <a href="admin.php?op=Order">Order Admin</a> &middot;</strong></b></center><br>
<?php 
    if (isUpdate()) {
        ?>
	<center><b><strong>&middot;&middot;&middot; <a href="http://moahosting.com/modules.php?name=Downloads&d_op=viewdownload&cid=2">An update is available! Click here to update now!</a> &middot;&middot;&middot;</strong></b></center>
<?php 
    }
    CloseTable();
}
Ejemplo n.º 3
0
 public function __construct()
 {
     Event::listen('validating', function ($input) {
         /**
          * @param $input
          * @return bool
          */
         function isUpdate($input)
         {
             return isset($input["id"]);
         }
         if (isUpdate($input)) {
             static::$rules["slug"][] = "unique:product,slug,{$input['id']}";
             static::$rules["code"][] = "unique:product,code,{$input['id']}";
         }
     });
 }