function ShowReport($sall)
{
    $tlastday = strtotime($sall["LastDay"]);
    $slastday = date("l, F j, Y", $tlastday);
    $c = $sall["Counts"][0] + $sall["Counts"][1] + $sall["Counts"][2];
    echo '<p>As of <b>' . $slastday . '</b>:<br>';
    $nusers = $sall["NUsers"];
    // Put out header...
    echo "<br>\n";
    echo '<table class="admin_userlist">';
    PrintHeader($sall);
    for ($iu = 0; $iu < $nusers; $iu++) {
        echo '<tr>';
        $sc = $sall[$iu];
        echo '<th align=left width=170>';
        echo '<a href="attendance_user.php?UserID=' . $sc["UserID"] . '">' . $sc["Name"] . '</a></th>';
        echo '<th align=right width=60>' . sprintf("%4.1f", $sc["Score"]) . '</th>';
        echo '<th align=right width=60>' . sprintf("%5.1f", $sc["TotalHours"]) . '</th>';
        echo '<th align=right width=60>' . sprintf("%5.1f", $sc["OutHours"]) . '</th>';
        echo "<th width=10></th>";
        $nc = $sc["NEvents"];
        for ($i = 0; $i < $nc; $i++) {
            $ss = "";
            $scc = $sc[$i];
            $c = '';
            if ($scc["Present"]) {
                $c = 'p';
            }
            if (isset($scc["Correction"])) {
                $c = 'c';
            }
            $ss .= $c;
            if ($scc["Hours"] > 0.001) {
                if ($scc["Hours"] > 10.0) {
                    $ss .= sprintf("%2.0f", $scc["Hours"]);
                } else {
                    $ss .= sprintf("%3.1f", $scc["Hours"]);
                }
            }
            echo "<th align=right width=40>" . $ss . "</th>\n";
        }
        echo '</tr>' . "\n";
    }
    echo '</table>';
}
Ejemplo n.º 2
0
    $pdf->addTextWrap(240, $YPos - 110, 100, $FontSize, _('Hour'), 'left');
    $pdf->addTextWrap(280, $YPos - 110, 200, $FontSize, ':__________________', 'left', 0, $fill);
    $pdf->addTextWrap(240, $YPos - 150, 100, $FontSize, _('Signature'), 'left');
    $pdf->addTextWrap(280, $YPos - 150, 200, $FontSize, ':__________________', 'left', 0, $fill);
    //add received by
    $pdf->addTextWrap(440, $YPos - 50, 100, 9, _('Received By :'), 'left');
    $pdf->addTextWrap(440, $YPos - 70, 100, $FontSize, _('Name'), 'left');
    $pdf->addTextWrap(480, $YPos - 70, 200, $FontSize, ':__________________', 'left', 0, $fill);
    $pdf->addTextWrap(440, $YPos - 90, 100, $FontSize, _('Date'), 'left');
    $pdf->addTextWrap(480, $YPos - 90, 200, $FontSize, ':__________________', 'left', 0, $fill);
    $pdf->addTextWrap(440, $YPos - 110, 100, $FontSize, _('Hour'), 'left');
    $pdf->addTextWrap(480, $YPos - 110, 200, $FontSize, ':__________________', 'left', 0, $fill);
    $pdf->addTextWrap(440, $YPos - 150, 100, $FontSize, _('Signature'), 'left');
    $pdf->addTextWrap(480, $YPos - 150, 200, $FontSize, ':__________________', 'left', 0, $fill);
    if ($YPos < $Bottom_Margin + $line_height) {
        PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Trf_ID, $FromLocation, $ToLocation, $template);
    }
    /*Print out the grand totals */
    $pdf->OutputD($_SESSION['DatabaseName'] . '_Stock_Transfer_Dispatch_' . Date('Y-m-d') . '.pdf');
    $pdf->__destruct();
} else {
    /*The option to print PDF was not hit so display form */
    $Title = _('Stock Dispatch Report');
    include 'includes/header.inc';
    echo '<p class="page_title_text noPrint" ><img src="' . $RootPath . '/css/' . $Theme . '/images/inventory.png" title="' . _('Inventory') . '" alt="" />' . ' ' . _('Inventory Stock Dispatch Report') . '</p>';
    echo '<div class="page_help_text noPrint">' . _('Create a transfer batch of overstock from one location to another location that is below reorder level.') . '<br/>' . _('Quantity to ship is based on reorder level minus the quantity on hand at the To Location; if there is a') . '<br/>' . _('dispatch percentage entered, that needed quantity is inflated by the percentage entered.') . '<br/>' . _('You need access to both locations to do the transfer.') . '<br/>' . _('Use Bulk Inventory Transfer - Receive to process the batch') . '</div>';
    $sql = "SELECT defaultlocation FROM www_users WHERE userid='" . $_SESSION['UserID'] . "'";
    $result = DB_query($sql, $db);
    $myrow = DB_fetch_array($result);
    $DefaultLocation = $myrow['defaultlocation'];
    echo '<form onSubmit="return VerifyForm(this);" action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post" class="noPrint">';
Ejemplo n.º 3
0
        } else {
            $code = $myrow['stockid'];
            $pdf->addTextWrap(30, $YPos, 100, $FontSize, $myrow['stockid'], 'left');
            $pdf->addTextWrap(135, $YPos, 160, $FontSize, $myrow['description'], 'left');
            $pdf->addTextWrap(300, $YPos, 50, $FontSize, locale_number_format($myrow['conversionfactor'], 'Variable'), 'right');
            $pdf->addTextWrap(350, $YPos, 50, $FontSize, locale_number_format($myrow['price'], $CurrDecimalPlaces), 'right');
            $pdf->addTextWrap(410, $YPos, 50, $FontSize, $PriceDated, 'left');
            $pdf->addTextWrap(470, $YPos, 90, $FontSize, $myrow['suppliers_partno'], 'left');
        }
        if ($YPos < $Bottom_Margin + $line_height) {
            PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $SupplierName, $Categoryname, $CurrCode, $CurrentOrAllPrices);
        }
    }
    /*end while loop  */
    if ($YPos < $Bottom_Margin + $line_height) {
        PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $SupplierName, $Categoryname, $CurrCode, $CurrentOrAllPrices);
    }
    $pdf->OutputD($_SESSION['DatabaseName'] . '_SupplierPriceList_' . Date('Y-m-d') . '.pdf');
} else {
    /*The option to print PDF was not hit so display form */
    $Title = _('Supplier Price List');
    include 'includes/header.inc';
    echo '<p class="page_title_text"><img src="' . $RootPath . '/css/' . $Theme . '/images/inventory.png" title="' . _('Purchase') . '" alt="" />' . ' ' . _('Supplier Price List') . '</p>';
    echo '<div class="page_help_text">' . _('View the Price List from supplier') . '</div><br />';
    echo '<br/>
		<form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post">';
    echo '<div>';
    echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
    $sql = "SELECT supplierid,suppname FROM `suppliers`";
    $result = DB_query($sql);
    echo '<table class="selection">
Ejemplo n.º 4
0
Archivo: index.php Proyecto: OvBB/v1.0
}
// Are they specifying an install type?
if (isset($_REQUEST['setup'])) {
    // Yes, so set the install type.
    $_SESSION['setup'] = $_REQUEST['setup'];
}
// Are they wanting to install or upgrade?
if ($_SESSION['setup'] == 'install') {
    require './includes/install.inc.php';
} else {
    if ($_SESSION['setup'] == 'upgrade') {
        require './includes/upgrade.inc.php';
    }
}
// Header
PrintHeader();
?>

<h1>Setup Type</h1>
<p>Which type of setup do you want to perform?</p>
<div align="center" style="font-size: 1.25em;"><a href="index.php?setup=install">Fresh Installation</a> | <a href="index.php?setup=upgrade">Upgrade From V0.15a</a></div>

<?php 
// Footer
PrintFooter();
// *************************************************************************** \\
function dmq($given)
{
    return is_array($given) ? array_map('dmq', $given) : stripslashes($given);
}
// *************************************************************************** \\
Ejemplo n.º 5
0
function PrintPostHeader()
{
    global $fbcmdPrefs;
    $header = array();
    $header[] = PrintIfPref('stream_save', '[#]');
    $header[] = PrintIfPref('stream_show_postid', 'POST_ID');
    $header[] = PrintIfPref('show_id', 'SOURCE_UID');
    $header[] = 'NAME';
    $header[] = PrintIfPref('stream_show_date', 'TIME');
    $header[] = 'TYPE';
    $header[] = 'MESSAGE';
    PrintHeader($header);
    if ($fbcmdPrefs['stream_blankrow']) {
        PrintRow('');
    }
}
Ejemplo n.º 6
0
     }
     $pdf->addTextWrap(460, $YPos, 40, $FontSize, number_format($shipqty, $myrow['decimalplaces']), 'right', 0, $fill);
     $pdf->addTextWrap(510, $YPos, 40, $FontSize, '_________', 'right', 0, $fill);
     if ($YPos < $Bottom_Margin + $line_height) {
         PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Trf_ID);
     }
     // Create loctransfers records for each record
     $sql2 = "INSERT INTO loctransfers (reference,\n\t\t\t\t\t\t\t\tstockid,\n\t\t\t\t\t\t\t\tshipqty,\n\t\t\t\t\t\t\t\tshipdate,\n\t\t\t\t\t\t\t\tshiploc,\n\t\t\t\t\t\t\t\trecloc)\n\t\t\t\t\t\tVALUES ('" . $Trf_ID . "',\n\t\t\t\t\t\t\t'" . $myrow['stockid'] . "',\n\t\t\t\t\t\t\t'" . $shipqty . "',\n\t\t\t\t\t\t\t'" . Date('Y-m-d') . "',\n\t\t\t\t\t\t\t'" . $_POST['FromLocation'] . "',\n\t\t\t\t\t\t\t'" . $_POST['ToLocation'] . "')";
     $ErrMsg = _('CRITICAL ERROR') . '! ' . _('Unable to enter Location Transfer record for') . ' ' . $_POST['StockID' . $i];
     if ($_POST['ReportType'] == 'Batch') {
         $resultLocShip = DB_query($sql2, $db, $ErrMsg);
     }
 }
 /*end while loop  */
 if ($YPos < $Bottom_Margin + $line_height) {
     PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Trf_ID);
 }
 /*Print out the grand totals */
 $pdfcode = $pdf->output();
 $len = strlen($pdfcode);
 if ($len <= 20) {
     $title = _('Print Stock Dispatch Report');
     include 'includes/header.inc';
     prnMsg(_('There were no items for the stock dispatch report'), 'error');
     echo "<br><a href='{$rootpath}/index.php?" . SID . "'>" . _('Back to the menu') . '</a>';
     include 'includes/footer.inc';
     exit;
 } else {
     header('Content-type: application/pdf');
     header("Content-Length: " . $len);
     header('Content-Disposition: inline; filename=StockDispatch.pdf');
Ejemplo n.º 7
0
<?php

// +---------------------------------------------+
// |     Copyright  2010 - 2028 WeLive           |
// |     http://www.weentech.com                 |
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$updates = Iif(ForceIncomingInt('check'), 1, 0);
PrintHeader($userinfo['username']);
echo '<div><ul>
<li>欢迎 <u>' . $userinfo['username'] . '</u> 进入管理面板! 为了确保系统安全, 请在关闭前点击 <a href="index.php?logout=1" onclick="return confirm(\'确定退出管理面板吗?\');">安全退出</a>!</li>
<li>隐私保护: <span class="note2">' . APP_NAME . '郑重承诺, 您在使用本系统时, ' . APP_NAME . '开发商不会收集您的任何信息</span>.</li>
<li>您在使用' . APP_NAME . '在线客服系统时有任何问题, 请访问: <a href="http://www.weentech.com/bbs/" target="_blank">闻泰网络</a>!</li>
</ul></div>
<BR>
<table border="0" cellpadding="0" cellspacing="0" class="normal" width="600">
<tr>
<td><b>程序名称</b></td>
<td><b>您现在的版本</b></td>
<td><b>最新版本</b></td>
</tr>
<tr>
<td><b>' . APP_NAME . '</b></td>
<td>' . APP_VERSION . '(UTF-8)免费版</td>
<td><span id="welive_latest_versioninfo"></span></td>
Ejemplo n.º 8
0
function Step2B()
{
    global $dbConn;
    // Connect to database.
    list($aDBInfo, $strError) = InitDatabase();
    // Return any errors.
    if ($strError) {
        return $strError;
    }
    // Execute the upgrade SQL script.
    if (!$_SESSION["upgrade.{$aDBInfo['type']}"]) {
        if (ExecuteSQL("./includes/upgrade.{$aDBInfo['type']}")) {
            // Mark us as having executed the SQL script.
            $_SESSION["upgrade.{$aDBInfo['type']}"] = TRUE;
        } else {
            // Couldn't execute install.sql.
            return "Could not execute <code>upgrade.{$aDBInfo['type']}</code>.<br /><b>Database says</b>: " . $dbConn->geterror();
        }
    }
    // Load the current configuration settings.
    $dbConn->query("SELECT content FROM configuration WHERE name='settings'");
    list($aConfig) = $dbConn->getresult();
    $aConfig = unserialize($aConfig);
    // Update settings.
    $aConfig['version'] = '0.16a';
    // Sanitize it for the database.
    $strSettings = $dbConn->sanitize(serialize($aConfig));
    $dbConn->query("DELETE FROM configuration WHERE name='settings'");
    $dbConn->query("INSERT INTO configuration(name, content) VALUES('settings', '{$strSettings}')");
    // What is the address of their forums?
    $strForums = substr($_SERVER['PHP_SELF'], 0, strpos($_SERVER['PHP_SELF'], 'setup/index.php')) . 'index.php';
    // Delete old cookies.
    $path = substr(pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME), 0, strpos(pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME), 'setup'));
    setcookie('activeuserid', '', time(), $path);
    setcookie('activepassword', '', time(), $path);
    setcookie('s', '', time(), $path);
    // Destroy the session.
    session_unset();
    session_destroy();
    // Tell the user it was a success.
    PrintHeader();
    ?>

<h1>Upgrade Successful!</h1>

<p>Your forums have been successfully upgraded from V0.15a to V0.16a. <b>You should delete the <code>setup</code> directory in your forums' path before continuing, as it is now a security risk.</b></p>
<p>You can visit your upgraded forums at this address:</p>
<blockquote><a href="<?php 
    echo $strForums;
    ?>
"><?php 
    echo htmlspecialchars("{$_SERVER['HTTP_HOST']}{$strForums}");
    ?>
</a></blockquote>
<p>If you or your users have any problems while using your upgraded community, stop by the <a href="http://www.ovbb.org/forums/forumdisplay.php?forumid=3">OvBB Project Forums</a> to seek support.</p>

<?php 
    PrintFooter();
}
Ejemplo n.º 9
0
// +---------------------------------------------+
// |     Copyright  2010 - 2028 WeLive           |
// |     http://www.weentech.com                 |
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'default');
$uid = $userinfo['userid'];
$ajaxpending = 'uid=' . $uid;
//需要动态变化, 用于将客服ID附加到AJAX URL
PrintHeader($userinfo['username'], 'comments');
echo '<script type="text/javascript">var ajaxpending = "' . $ajaxpending . '";</script>';
//用于AJAX
//########### DELETE COMMENTS ###########
if ($action == 'deletecomments') {
    $deletecommentids = $_POST['deletecommentids'];
    $page = ForceIncomingInt('p');
    $uid = ForceIncomingInt('u');
    for ($i = 0; $i < count($deletecommentids); $i++) {
        $DB->exe("DELETE FROM " . TABLE_PREFIX . "comment WHERE commentid = '" . ForceInt($deletecommentids[$i]) . "'");
    }
    GotoPage('admin.comments.php' . Iif($page, '?p=' . $page . Iif($uid, '&u=' . $uid), Iif($uid, '?u=' . $uid)), 1);
}
//########### FAST DELETE COMMENTS ###########
if ($action == 'fastdelete') {
    $days = ForceIncomingInt('days');
Ejemplo n.º 10
0
}
// ############################### DISPLAY UPGRADES #############################
$availableupgrades = 0;
if (file_exists(BASEPATH . 'upgrade/upgrade.php') and file_exists(BASEPATH . 'upgrade/version.php')) {
    $availableupgrades = 1;
}
if ($availableupgrades) {
    $updatestatus = '<span class=blue>已检测到升级程序, 请按提示进行升级!</span>';
} else {
    if ($upgradefinished) {
        $updatestatus = '<span class=green>系统升级已完成!</span>';
    } else {
        $updatestatus = '<span class=note>暂无可用的升级程序!</span>';
    }
}
PrintHeader($userinfo['username'], 'upgrade');
echo '<div>' . $updatestatus . '
<ul><li>请严格按升级说明进行系统升级, 升级说明一般随附在升级包中.</li>
<li>升级过程一般是先将升级包解压后, 设置FTP工具以 <span class=note>二进制方式</span> 上传到网站替换原文件, 然后在后台运行升级程序.</li>
<li>建议: 升级完成后删除upgrade目录内的所有文件.</li>
</ul>
</div>';
BR(3);
echo '<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td width="70%" valign="top" align="center">';
if ($availableupgrades) {
    include BASEPATH . 'upgrade/version.php';
    $disableupgrade = 'Disabled';
    $new = str_replace('.', '', $WeLiveNewVersion);
    $old = str_replace('.', '', APP_VERSION);
Ejemplo n.º 11
0
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'default');
if (IsPost('updateusers')) {
    $action = 'updateusers';
}
if (IsPost('deleteusers')) {
    $action = 'deleteusers';
}
PrintHeader($userinfo['username'], 'users');
$cache_errortitle = '更新客服缓存错误';
$cache_errors = '用户信息已保存到数据库, 但更新在线客服缓存文件失败, 前台客服小面板状态无法更新! 请检查cache/目录是否存在或可写?';
//########### UPDATE OR ADD USER ###########
if ($action == 'insertuser' or $action == 'updateuser') {
    $userid = ForceIncomingInt('userid');
    $usergroupid = ForceIncomingInt('usergroupid');
    $activated = ForceIncomingInt('activated');
    $displayorder = ForceIncomingInt('displayorder');
    $username = ForceIncomingString('username');
    $password = ForceIncomingString('password');
    $passwordconfirm = ForceIncomingString('passwordconfirm');
    $userfrontname = ForceIncomingString('userfrontname');
    $userfrontename = ForceIncomingString('userfrontename');
    $infocn = ForceIncomingString('infocn');
    $infoen = ForceIncomingString('infoen');
Ejemplo n.º 12
0
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'default');
if (IsPost('updatemsgs')) {
    $action = 'updatemsgs';
}
if (IsPost('deletemsgs')) {
    $action = 'deletemsgs';
}
PrintHeader($userinfo['username'], 'automsg');
//########### UPDATE MESSAGES ###########
if ($action == 'updatemsgs') {
    $msgids = $_POST['msgids'];
    $ordernums = $_POST['ordernums'];
    $activateds = $_POST['activateds'];
    $msgs = $_POST['msgs'];
    $page = ForceIncomingInt('p');
    for ($i = 0; $i < count($msgids); $i++) {
        $DB->exe("UPDATE " . TABLE_PREFIX . "automsg SET ordernum = '" . ForceInt($ordernums[$i]) . "',\r\n\t\tactivated = '" . ForceInt($activateds[$i]) . "',\r\n\t\tmsg = '" . ForceString($msgs[$i]) . "'\r\n\t\tWHERE msgid = '" . ForceInt($msgids[$i]) . "'");
    }
    GotoPage('admin.automsg.php' . Iif($page, '?p=' . $page), 1);
}
//########### DELETE MESSAGES ###########
if ($action == 'deletemsgs') {
    $deletemsgids = $_POST['deletemsgids'];
Ejemplo n.º 13
0
            $code = $myrow[0];
        } else {
            $code = $myrow[0];
            $pdf->addTextWrap(50, $YPos, 90, $FontSize, $myrow[0], 'left');
            $pdf->addTextWrap(145, $YPos, 215, $FontSize, $myrow[1], 'left');
            $pdf->addTextWrap(350, $YPos, 50, $FontSize, number_format($myrow[2], 2), 'right');
            $pdf->addTextWrap(430, $YPos, 50, $FontSize, $dateprice, 'left');
            $pdf->addTextWrap(510, $YPos, 40, $FontSize, $myrow[4], 'left');
        }
        if ($YPos < $Bottom_Margin + $line_height) {
            PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Supp, $Categoryname, $Currency, $DatePrice);
        }
    }
    /*end while loop  */
    if ($YPos < $Bottom_Margin + $line_height) {
        PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $Supp, $Categoryname, $Currency, $DatePrice);
    }
    $pdfcode = $pdf->output();
    header('Content-type: application/pdf');
    header("Content-Length: " . $len);
    header('Content-Disposition: inline; filename=Supplier Price List.pdf');
    header('Expires: 0');
    header('Cache-Control: private, post-check=0, pre-check=0');
    header('Pragma: public');
    $pdf->Output('SuppPriceList.pdf', 'I');
} else {
    /*The option to print PDF was not hit so display form */
    $title = _('Supplier Price List');
    include 'includes/header.inc';
    echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Purchase') . '" alt="">' . ' ' . _('Supplier Price List') . '';
    echo '<div class="page_help_text">' . _('View the Price List from supplier') . '</div><br>';
Ejemplo n.º 14
0
    $pageTitle = "Афиша - Сергей Дикий";
    $pageActiveMenu = -1;
    $pageContent = file_get_contents("lib/data/promo.htm");
    $desc = $pageTitle;
} elseif (isset($_GET['лесоповал']) || $mod == 'lesopoval' || $mod == 'лесоповал') {
    header('Content-type: text/html; charset=utf-8');
    $pageTitle = "Лесоповал";
    $pageActiveMenu = -1;
    /*$pageContent = file_get_contents("lib/data/lesopoval.htm");*/
    $desc = $pageTitle;
    header('Content-type: text/html; charset=utf-8');
    PrintHeader($pageTitle, $pageActiveMenu, $desc);
    include "lib/data/lesopoval.tpl.php";
    //echo $pageContent;
    PrintFooter();
    die;
} elseif (isset($_GET['продюсирование']) || $mod == 'продюсирование' || $mod == 'production') {
    $pageTitle = "Продюсирование - Сергей Дикий";
    $pageActiveMenu = $mProduction;
    $pageContent = file_get_contents("lib/data/production.htm");
    $desc = $pageTitle;
} else {
    $pageTitle = "Сергей Дикий - Официальный Сайт";
    $pageActiveMenu = $mHome;
    $pageContent = file_get_contents("lib/data/main.htm");
    $desc = $pageTitle;
}
header('Content-type: text/html; charset=utf-8');
PrintHeader($pageTitle, $pageActiveMenu, $desc);
echo $pageContent;
PrintFooter();
Ejemplo n.º 15
0
                $pdf->addTextWrap(230, $YPos, 50, $FontSize, locale_number_format($ComponentNeeded, $myComponent['decimalplaces']), 'right');
                $pdf->addTextWrap(280, $YPos, 30, $FontSize, $myComponent['units'], 'left');
                $pdf->addTextWrap(310, $YPos, 50, $FontSize, locale_number_format($PrevisionShrinkage, $myComponent['decimalplaces']), 'right');
                $pdf->addTextWrap(360, $YPos, 30, $FontSize, $myComponent['units'], 'left');
                $YPos -= $line_height;
                if ($YPos < $Bottom_Margin + $line_height) {
                    PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $WO, $Stockid, $myItem['description'], $QtyPending, $myItem['units'], $myItem['decimalplaces'], $ReportDate);
                }
            }
        }
        // Production Notes
        $pdf->addTextWrap($Xpos, $YPos - 50, 200, $FontSize, _('Incidences / Production Notes') . ':', 'left');
        $YPos -= 8 * $line_height;
        PrintFooterSlip($pdf, _('Components Ready By'), _('Item Produced By'), _('Quality Control By'), $YPos, $FontSize, false);
        if ($YPos < $Bottom_Margin + $line_height) {
            PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $WO, $Stockid, $myItem['description'], $QtyPending, $myItem['units'], $myItem['decimalplaces'], $ReportDate);
        }
        $pdf->OutputD('WO-' . $WO . '-' . $StockId . '-' . Date('Y-m-d') . '.pdf');
        $pdf->__destruct();
    } else {
        $Title = _('WO Item production Slip');
        include 'includes/header.inc';
        prnMsg(_('There were no items with ready to produce'), 'info');
        prnMsg($sql);
        echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>';
        include 'includes/footer.inc';
        exit;
    }
}
function PrintHeader(&$pdf, &$YPos, &$PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $WO, $StockId, $Description, $Qty, $UOM, $DecimalPlaces, $ReportDate)
{
Ejemplo n.º 16
0
<?php

// +---------------------------------------------+
// |     Copyright  2010 - 2028 WeLive           |
// |     http://www.weentech.com                 |
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'default');
PrintHeader($userinfo['username'], 'messages');
//########### DELETE COMMENTS ###########
if ($action == 'deletecomments') {
    $deletecommentids = $_POST['deletecommentids'];
    $page = ForceIncomingInt('p');
    $uid = ForceIncomingInt('u');
    for ($i = 0; $i < count($deletecommentids); $i++) {
        $DB->query("DELETE FROM " . TABLE_PREFIX . "msg WHERE msgid = '" . ForceInt($deletecommentids[$i]) . "'");
    }
    GotoPage('admin.messages.php' . Iif($page, '?p=' . $page . Iif($uid, '&u=' . $uid), Iif($uid, '?u=' . $uid)), 1);
}
//########### FAST DELETE COMMENTS ###########
if ($action == 'fastdelete') {
    $days = ForceIncomingInt('days');
    $uid = ForceIncomingInt('u');
    $realtime = time();
    $searchsql = Iif($uid, " WHERE fromid ='{$uid}' ", "");
Ejemplo n.º 17
0
 list($lastdate, $lastsupplier, $preferredsupplier) = GetPartInfo($db, $holdpart);
 $displaydate = $lastdate;
 if (!is_Date($lastdate)) {
     $displaydate = " ";
 }
 $YPos -= $line_height;
 $pdf->addTextWrap(50, $YPos, 80, $FontSize, _('Last Purchase Date: '), 'left', 0, $fill);
 $pdf->addTextWrap(130, $YPos, 60, $FontSize, $displaydate, 'left', 0, $fill);
 $pdf->addTextWrap(190, $YPos, 60, $FontSize, _('Supplier: '), 'left', 0, $fill);
 $pdf->addTextWrap(250, $YPos, 60, $FontSize, $lastsupplier, 'left', 0, $fill);
 $pdf->addTextWrap(310, $YPos, 120, $FontSize, _('Preferred Supplier: '), 'left', 0, $fill);
 $pdf->addTextWrap(430, $YPos, 60, $FontSize, $preferredsupplier, 'left', 0, $fill);
 $FontSize = 8;
 $YPos -= 2 * $line_height;
 if ($YPos < $Bottom_Margin + $line_height) {
     PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $_POST['Consolidation'], $reportdate);
     // include('includes/MRPPlannedPurchaseOrdersPageHeader.inc');
 }
 /*Print out the grand totals */
 $pdf->addTextWrap($Left_Margin, $YPos, 120, $FontSize, _('Number of Purchase Orders: '), 'left');
 $pdf->addTextWrap(150, $YPos, 30, $FontSize, $Partctr, 'left');
 $pdf->addTextWrap(200, $YPos, 100, $FontSize, _('Total Extended Cost:'), 'right');
 $DisplayTotalVal = number_format($Total_Extcost, 2);
 $pdf->addTextWrap(310, $YPos, 60, $FontSize, $DisplayTotalVal, 'right');
 $pdfcode = $pdf->output();
 $len = strlen($pdfcode);
 if ($len <= 20) {
     $title = _('Print MRP Planned Purchase Orders Error');
     include 'includes/header.inc';
     prnMsg(_('There were no items with planned purchase orders'), 'error');
     echo "<br><a href='{$rootpath}/index.php?" . SID . "'>" . _('Back to the menu') . '</a>';
Ejemplo n.º 18
0
function Step4B()
{
    global $dbConn;
    // Load the configuration settings.
    $CFG = $_SESSION['config'];
    // Grab the details.
    $_SESSION['username'] = trim($_REQUEST['username']);
    $_SESSION['password'] = trim($_REQUEST['password']);
    $_SESSION['email'] = trim($_REQUEST['email']);
    // Username
    if ($_SESSION['username'] == '') {
        return 'You must specify a username.';
    } else {
        if (strlen($_SESSION['username']) > $CFG['maxlen']['username']) {
            return "Usernames cannot be longer than {$CFG['maxlen']['username']} characters.";
        } else {
            $strUsername = $dbConn->sanitize($_SESSION['username']);
        }
    }
    // Password
    if ($_SESSION['password'] == '') {
        return 'You must specify a password.';
    } else {
        if (strlen($_SESSION['password']) > $CFG['maxlen']['password']) {
            return "Passwords cannot be longer than {$CFG['maxlen']['password']} characters.";
        } else {
            $strPassword = md5($_SESSION['password']);
        }
    }
    // E-mail
    if ($_SESSION['email'] == '') {
        return 'You must specify an e-mail address.';
    } else {
        if (strlen($_SESSION['email']) > $CFG['maxlen']['email']) {
            return "E-mail addresses cannot be longer than {$CFG['maxlen']['email']} characters.";
        } else {
            $strEMail = $dbConn->sanitize($_SESSION['email']);
        }
    }
    // Insert the administrator's member record.
    $dJoined = gmdate('Y-m-d');
    $dbConn->query("INSERT INTO citizen(username, passphrase, email, datejoined, usergroup, pmfolders) VALUES('{$strUsername}', '{$strPassword}', '{$strEMail}', '{$dJoined}', 3, 'a:0:{}')");
    // Update the stats.
    $iNewestMember = $dbConn->getinsertid('citizen');
    $dbConn->query("UPDATE stats SET content={$iNewestMember} WHERE name='newestmember'");
    $dbConn->query("UPDATE stats SET content=content+1 WHERE name='membercount'");
    // What is the address of their forums?
    $strForums = substr($_SERVER['PHP_SELF'], 0, strpos($_SERVER['PHP_SELF'], 'setup/index.php')) . 'index.php';
    // Destroy the session.
    session_unset();
    session_destroy();
    // Tell the user it was a success.
    PrintHeader();
    ?>

<h1>Installation Successful!</h1>

<p>The installation of your forums was a complete success. <b>You should delete the <code>setup</code> directory in your forums' path before continuing, as it is now a security risk.</b></p>
<p>You can visit your forums at this address:</p>
<blockquote><a href="<?php 
    echo $strForums;
    ?>
"><?php 
    echo htmlspecialchars("{$_SERVER['HTTP_HOST']}{$strForums}");
    ?>
</a></blockquote>
<p>If you or your users have any problems while using your new community, stop by the <a href="http://www.ovbb.org/forums/forumdisplay.php?forumid=3">OvBB Project Forums</a> to seek support.</p>

<?php 
    PrintFooter();
}
Ejemplo n.º 19
0
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'default');
if (IsPost('updategroups')) {
    $action = 'updategroups';
}
if (IsPost('deletegroups')) {
    $action = 'deletegroups';
}
PrintHeader($userinfo['username'], 'groups');
//########### UPDATE GROUPS ###########
if ($action == 'updategroups') {
    $usergroupids = $_POST['usergroupids'];
    $displayorders = $_POST['displayorders'];
    $groupnames = $_POST['groupnames'];
    $groupenames = $_POST['groupenames'];
    $descriptions = $_POST['descriptions'];
    $descriptionens = $_POST['descriptionens'];
    $activateds = $_POST['activateds'];
    for ($i = 0; $i < count($usergroupids); $i++) {
        $groupname = ForceString($groupnames[$i]);
        $groupename = ForceString($groupenames[$i]);
        $DB->exe("UPDATE " . TABLE_PREFIX . "usergroup SET displayorder = '" . ForceInt($displayorders[$i]) . "',\r\n\t\tgroupname = '" . Iif($groupname, $groupname, '未命名') . "',\r\n\t\tgroupename = '" . Iif($groupename, $groupename, 'No name') . "',\r\n\t\tactivated = '" . ForceInt($activateds[$i]) . "',\r\n\t\tdescription = '" . ForceString($descriptions[$i]) . "',\r\n\t\tdescriptionen = '" . ForceString($descriptionens[$i]) . "'\r\n\t\tWHERE usergroupid = '" . ForceInt($usergroupids[$i]) . "'");
    }
    if (!storeCache()) {
Ejemplo n.º 20
0
         // Parameters for addTextWrap are defined in /includes/class.pdf.php
         // 1) X position 2) Y position 3) Width
         // 4) Height 5) Text 6) Alignment 7) Border 8) Fill - True to use SetFillColor
         // and False to set to transparent
         $pdf->addTextWrap(310, $YPos, 60, $FontSize, $myrow2['loccode'], 'left', 0, $fill);
         $pdf->addTextWrap(370, $YPos, 50, $FontSize, number_format($myrow2['quantity'], $myrow2['decimalplaces']), 'right', 0, $fill);
         $pdf->addTextWrap(420, $YPos, 50, $FontSize, number_format($myrow2['reorderlevel'], $myrow2['decimalplaces']), 'right', 0, $fill);
         if ($YPos < $Bottom_Margin + $line_height) {
             PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $catdescription);
         }
     }
     /*end while loop */
 }
 /*end while loop */
 if ($YPos < $Bottom_Margin + $line_height) {
     PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $catdescription);
 }
 /*Print out the grand totals */
 $pdfcode = $pdf->output();
 $len = strlen($pdfcode);
 if ($len <= 20) {
     $title = _('Print Reorder Level Report');
     include 'includes/header.inc';
     prnMsg(_('There were no items with demand greater than supply'), 'error');
     echo "<br><a href='{$rootpath}/index.php?" . SID . "'>" . _('Back to the menu') . '</a>';
     include 'includes/footer.inc';
     exit;
 } else {
     header('Content-type: application/pdf');
     header("Content-Length: " . $len);
     header('Content-Disposition: inline; filename=ReorderLevel.pdf');
Ejemplo n.º 21
0
     $pdf->addTextWrap(160, $YPos, 20, $FontSize, $myrow['mbflag'], '', 0, $fill);
     $pdf->addTextWrap(180, $YPos, 180, $FontSize, $myrow['description'], '', 0, $fill);
     $pdf->addTextWrap(360, $YPos, 30, $FontSize, $myrow['loccode'], 'right', 0, $fill);
     $pdf->addTextWrap(390, $YPos, 25, $FontSize, $myrow['workcentreadded'], 'right', 0, $fill);
     $pdf->addTextWrap(415, $YPos, 45, $FontSize, number_format($myrow['quantity'], 2), 'right', 0, $fill);
     $pdf->addTextWrap(460, $YPos, 55, $FontSize, $FormatedEffectiveAfter, 'right', 0, $fill);
     $pdf->addTextWrap(515, $YPos, 50, $FontSize, $FormatedEffectiveTo, 'right', 0, $fill);
     if ($YPos < $Bottom_Margin + $line_height) {
         PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $assemblydesc);
     }
 }
 /*end while loop */
 $FontSize = 10;
 $YPos -= 2 * $line_height;
 if ($YPos < $Bottom_Margin + $line_height) {
     PrintHeader($pdf, $YPos, $PageNumber, $Page_Height, $Top_Margin, $Left_Margin, $Page_Width, $Right_Margin, $assemblydesc);
 }
 $pdfcode = $pdf->output();
 $len = strlen($pdfcode);
 if ($len <= 20) {
     $title = _('Print Indented BOM Listing Error');
     include 'includes/header.inc';
     prnMsg(_('There were no items for the selected assembly'), 'error');
     echo "<br><a href='{$rootpath}/index.php?" . SID . "'>" . _('Back to the menu') . '</a>';
     include 'includes/footer.inc';
     exit;
 } else {
     header('Content-type: application/pdf');
     header("Content-Length: " . $len);
     header('Content-Disposition: inline; filename=Customer_trans.pdf');
     header('Expires: 0');
Ejemplo n.º 22
0
<?php

// +---------------------------------------------+
// |     Copyright  2010 - 2028 WeLive           |
// |     http://www.weentech.com                 |
// |     This file may not be redistributed.     |
// +---------------------------------------------+
define('AUTH', true);
include 'includes/welive.Core.php';
include BASEPATH . 'includes/welive.Admin.php';
if ($userinfo['usergroupid'] != 1) {
    exit;
}
$action = ForceIncomingString('action', 'displaysettings');
PrintHeader($userinfo['username'], 'settings');
//########### UPDATE SETTINGS ###########
if ($action == 'updatesettings') {
    $filename = BASEPATH . "config/settings.php";
    if (!is_writeable($filename)) {
        $errors = '请将系统配置文件config/settings.php设置为可写, 即属性设置为: 777';
    }
    if (isset($errors)) {
        PrintErrors($errors, '系统设置错误');
        $action = 'displaysettings';
    } else {
        $settings = $_POST['settings'];
        $fp = @fopen($filename, 'rb');
        $contents = @fread($fp, filesize($filename));
        @fclose($fp);
        $contents = trim($contents);
        $oldcontents = $contents;