本文整理汇总了PHP中design::drawDetailTable方法的典型用法代码示例。如果您正苦于以下问题:PHP design::drawDetailTable方法的具体用法?PHP design::drawDetailTable怎么用?PHP design::drawDetailTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类design
的用法示例。
在下文中一共展示了design::drawDetailTable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: design
$design = new design();
$class_pm = new products_minierp();
$pid = tep_db_prepare_input($_GET['pid']);
$d_cat = tep_db_prepare_input($_GET['dcat']);
$d_cat_text = $design->getDesignCategory($d_cat);
$imgsize = '150';
$products = $class_pm->retrieveDetail($pid, 'p');
$design->original_products_id = $pid;
$design->category = $d_cat;
$content .= '<form name="copydesign" method="post" action="?open=designs-detail">';
$content .= '<input type="hidden" name="me_action" value="CREATENEWDESIGN" />';
$content .= '<div style="float:left;margin-left:15px;">';
//LEFT Part open
$margin_left = 15;
$content .= '<div id="image_1" style="float:left;width:' . $imgsize . 'px;height:210px;text-align:center;">';
$content .= '<label><strong>Main Image</strong><br />';
$content .= webImage($products['p']['products_image'], $imgsize, $imgsize, 'Main Image', 'img-border', '') . '</label>';
$content .= '<input type="hidden" name="image_1" value="' . $products['p']['products_image'] . '" />';
$content .= '</div>';
$margin_left += $imgsize;
$margin_left += 30;
$content .= '</div>';
//LEFT Part close
$content .= '<div style="margin-left:' . $margin_left . 'px;padding-top:20px;">';
$content .= $design->drawDetailTable(true, 'copy');
$buttons = '<input id="createcopy" type="button" value="Create" title="Create ' . $d_cat_text . '" />';
$content .= '<div style="margin-top:10px;width:395px;text-align:right;">' . $buttons . '</div>';
$content .= '</div>';
$content .= '</form>';
$javascript = $design->drawDetailTableJSRule('createcopy', 'copydesign');
$title = 'Create ' . $d_cat_text . ' from Product ' . $pid;
示例2: ajaxReturn
$result['box_target'] = "#dra-{$drafts_id}-colors-request";
ajaxReturn($result);
exit;
}
if (isset($design)) {
$design->comments->processPostAction($design->owner, $design->followers);
$design->followers->processPostAction();
}
}
if (is_null($design->id)) {
$content .= '<h3 class="red">No Valid Design ID Specified</h3>';
$title = 'Design Drafts Management';
} else {
$content .= '<div style="float:left;width:400px;">';
//LEFT Part open
$content .= '<div>' . $design->drawDetailTable(false, true, 2) . '</div>';
//COLORS REQUEST
$content .= '<div style="margin-top:20px;">';
$content .= drawColorsRequest($design->colors_request, 'colors-request', '', 'Design Colors Request', '', true);
$content .= '</div>';
//COMMENTS
$content .= '<div style="margin-top:20px;">';
$content .= $design->comments->drawComments($session_userinfo['username'], 'Design Comments');
$content .= '</div>';
$content .= '</div>';
//LEFT Part close
$content .= '<div style="margin-left:430px;width:400px;">';
//RIGHT Part open
$drafts = $design->retrieveDrafts();
for ($x = 0; $x < 5; $x++) {
$d = $drafts[$x];
示例3: design
use_class('design');
if (isset($_GET['imagelimit'])) {
$messagebox->add('File is too big, max width/height allowed is ' . $_GET['imagelimit'] . 'px');
}
if (isset($_GET['imageupload']) && $_GET['imageupload'] == 'none') {
$messagebox->add('Please upload an image to create New Design');
}
$design = new design();
if (isset($_GET['cat']) && $_GET['cat'] == 'R') {
$design->category = 'R';
$content .= '<form name="newdesign" method="post" action="?open=designs-detail" enctype="multipart/form-data">';
$content .= '<input type="hidden" name="me_action" value="CREATENEWDESIGN" />';
$content .= '<input type="hidden" name="status" value="5" />';
$messagebox->add('<strong>This Design will be created directly in SAMPLINGS Tab</strong>');
$content .= $design->drawDetailTable();
$submit = '<input id="create" type="button" value="Create Design" />';
$content .= '<div class="buttons" style="width:390px;">' . $submit . '</div>';
$content .= '</form>';
$javscript .= $design->drawDetailTableJSRule('create', 'newdesign');
} else {
$content .= '<div class="box ui-corner-all" style="margin-bottom:20px;">';
$content .= '<h2>Any Design Categories with New Image</h2>';
$content .= '<form name="newdesign" method="post" action="?open=designs-detail" enctype="multipart/form-data">';
$content .= '<input type="hidden" name="me_action" value="CREATENEWDESIGN" />';
$content .= '<div><table class="form" border="0" cellpadding="0" cellspacing="0">';
$content .= '<tr><td class="label">Design Image</td><td><input type="file" name="image_1" /></td></tr>';
$content .= '<tr><td class="label">Source of Idea</td><td><input type="text" id="source_of_ideas" name="source_of_ideas" style="width:100%;" disabled="disabled"/></td></tr>';
$content .= '</table></div>';
$content .= '<div class="buttons" style="width:410px;"><input type="submit" value="Create Design" /></div>';
$content .= '</form>';