コード例 #1
0
    $inktypes = array();
    $index_inktypes = array();
}
for ($i = 0; $i < count($inklines); $i++) {
    $type = "side_" . $inklines[$i]->side;
    if (empty($inktypes[$type]) || is_null($inktypes[$type])) {
        $inktypes[$type] = "";
    }
    if (empty($inktypes[$type]['id']) || is_null($inktypes[$type]['id'])) {
        $inktypes[$type]['id'] = "";
    }
    if (empty($inktypes[$type]['name']) || is_null($inktypes[$type]['name'])) {
        $inktypes[$type]['name'] = "";
    }
    //$index[$type]++;
    $inktypes[$type]['id'] = $inktypes[$type]['id'] . $focus->getInkRow($inklines[$i], $i, true);
    $inktypes[$type]['name'] = $inktypes[$type]['name'] . $focus->getInkNames($inklines[$i]->color_id, $i, true) . ',';
    $x = $x + 1;
    $index_inktypes[$x] = $type;
}
for ($i = 0; $i < count($index_inktypes); $i++) {
    $type = $index_inktypes[$i];
    $xtpl->assign("inks_names_" . $index_inktypes[$i], $inktypes[$type]['name']);
    $xtpl->assign("inkId_" . $index_inktypes[$i], $inktypes[$type]['id']);
}
if (isset($_REQUEST['return_module'])) {
    $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']);
}
if (isset($_REQUEST['return_action'])) {
    $xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']);
}