} else {
    $content .= '<h3 class="red">Product Category not yet set!</h3>';
}
$content .= '</div>';
$content .= '<div id="step-processes" style="display:none;">';
$content .= '<div style="margin-bottom:10px;">';
$content .= '<span style="font-size:18px;" class="bold">' . $prod_cat . '</span>';
$content .= '</div>';
$content .= '<table border="0" cellpadding="0" cellspacing="0">';
$sop_count = 0;
$content .= '<tr><th>No</th><th>Process</th><th>Action</th><th>Checklist</th></tr>';
foreach ($sops as $sop) {
    $sop_count++;
    $rowclass = $sop_count % 2 == 0 ? 'o' : 'e';
    $act = explode('|', $sop);
    $r_data = getDetailData($products_id, $act[2]);
    $cb_disabled = $r_data['iscomplete'] == "0" ? 'disabled="disabled"' : '';
    $cb = '<input type="checkbox" id="cb-' . $act[2] . '" value="0" ' . $cb_disabled . ' />';
    $btn = '<input type="button" id="' . $act[2] . '" value="' . $act[1] . '" />';
    $iscomplete = '<input type="hidden" name="iscomplete" value="' . $r_data['iscomplete'] . '" />';
    $content .= '<tr id="row-' . $act[2] . '" class="' . $rowclass . '"><td class="l">' . $sop_count . $iscomplete . '</td><td class="i">' . $act[0] . $r_data['view'] . '</td><td class="d2">' . $btn . '</td><td class="d">' . $cb . '</td></tr>';
}
//$content .= '<tr><td class="label bold">Brand</td><td class="field bold" colspan="2">'.$brandnames[$product['p']['products_brand_id']].'</td></tr>';
//if($length!='') $content .= '<tr><td>Lengths</td><td colspan="2">'.$length.'</td></tr>';
//$content .= '<tr><td>Sales Partners</td><td colspan="2">'.$spadded.'</td></tr>';
$content .= '<tr><td colspan="4"><div id="sop-detail-done" style="display:none;">';
$content .= '<div class="sop-box ui-corner-all" style="margin-top:10px;"><input id="mktemplate" type="checkbox" /> Make As Template<br/><br/><span class="red"><strong>PLEASE READ: </strong>When checked, uncomplete detail for all products from the same draft will be overwritten by this product detail data</span>';
$content .= '</div>';
$content .= '<input id="prodet-complete" style="margin-top:10px;" type="button" class="green" value="Product Details Completed" />';
$content .= '</div>';
//closed id="sop-detail-done"
Beispiel #2
0
<html>

<head>
    <style>
        a {text-decoration: none}
    </style>
</head>

<body>
<?php 
include "interface.php";
list($prod, $ver, $ts, $time) = get_detail($_GET["info"]);
$sortName = getParam("sortName", "");
$sortType = getParam("sortType", 1);
$rows = getDetailData($prod, $ver, $ts, $time, $sortName, $sortType * -1);
function get_detail($str)
{
    return explode(":", $str);
}
function getParam($paramName, $defValue)
{
    global $_GET;
    if (array_key_exists($paramName, $_GET)) {
        return $_GET[$paramName];
    }
    return $defValue;
}
?>

<table border='1'>
<?php