当前位置: 首页>>代码示例>>PHP>>正文


PHP design::drawDetailTableJSRule方法代码示例

本文整理汇总了PHP中design::drawDetailTableJSRule方法的典型用法代码示例。如果您正苦于以下问题:PHP design::drawDetailTableJSRule方法的具体用法?PHP design::drawDetailTableJSRule怎么用?PHP design::drawDetailTableJSRule使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在design的用法示例。


在下文中一共展示了design::drawDetailTableJSRule方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:products-analysis-rv.php

示例2:

            $content .= '<div style="float:left">' . $value . '</div>';
            $content .= '<div style="float:left;margin-left:5px;"><strong>Draft ' . $draft['drafts_id'] . '</strong><br/>' . $draft['drafts_name'] . '</div>';
            $content .= '</td>';
            $content .= '</tr>';
        }
        $content .= '</table>';
        $content .= '<input type="hidden" id="copydraftlists" name="copy_draft_lists" value=""/>';
    }
    $content .= '</fieldset>';
    $content .= '</div>';
    $content .= '</form>';
    $javascript .= '
            $("#cat").change(function() {
                var descat = $(this).val();
                if(descat=="R" || descat=="V") {
                    $("#oriprodid").show();
                } else {
                    $("#oriprodid").hide();
                }
            });
            $(".copy-draft").click(function(){
                var copy_draft = [];
                $(".copy-draft:checkbox:checked").each(function(i){
                    copy_draft[i] = $(this).val();
                });
                $("#copydraftlists").val(copy_draft.join(","));
            });
            ' . $design->drawDetailTableJSRule('createcopy', 'copydesign') . '
';
    $title = 'Detail Copy of Design ' . $design->id;
}
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:designs-detail-copy.php

示例3: design

}
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>';
    $content .= '</div>';
    $descat_array = $design->getDesignCategory();
    unset($descat_array['B'], $descat_array['T']);
    $content .= '<div class="box ui-corner-all">';
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:designs-new.php

示例4: date

     $label = $key > 0 && $s['status'] == '1' ? 'Moved Back to Idea' : $status_label[$s['status']];
     $content .= '<tr><td>&bull;</td><td>' . $label . '</td><td>on ' . date('d M Y H:i:s', $s['status_time']) . '</td><td>by ' . $s['status_by'] . '</td></tr>';
 }
 $content .= '</table>';
 $content .= '</div>';
 $content .= '</div>';
 //RIGHT Part close
 //FOLLOWERS
 $content .= $design->followers->drawFollowersWithContainer('Design Followers');
 //    $button_upload = '<input type=\'button\' class=\'btnupload\' value=\'New\' />';
 $button_upload = '<button class=\'btnupload\' title=\'Upload Image\'><span class=\'ui-icon ui-icon-folder-open\' style=\'float:left;\'></span></button>';
 //    $button_delete = '<input type=\'button\' class=\'btndelete\' value=\'Delete\' disabled=\'disabled\' />';
 $button_delete = '<button class=\'btndelete\' title=\'Delete Image\' disabled=\'disabled\'><span class=\'ui-icon ui-icon-trash\' style=\'float:left;\'></span></button>';
 $js_reload_followers = $design->followers->JSReloader();
 $javascript = '
         ' . $design->drawDetailTableJSRule('update', 'updatedesign') . '
         ' . $design->comments->drawCommentsJSAction('reloadList();' . $js_reload_followers) . '
         ' . $design->followers->drawFollowersJSAction($session_userinfo['id'], '') . '
         ' . drawColorsRequestJSAction('colors-request', 'UPDATECOLORSREQUEST', 'REMOVEFROMCOLORSREQUEST', 'designs_id', $design->id, $js_reload_followers) . '
         ' . drawNotesJSAction2('designs-description', 'UPDATEDESIGNSDESCRIPTION', 'designs_id', $design->id, $js_reload_followers) . '
         ' . drawNotesJSAction('source-of-ideas', 'UPDATESOURCEOFIDEAS', 'designs_id', $design->id, $js_reload_followers) . '
         function imageDeleted(xmlResult, txtStatus) {
             if(txtStatus=="success") {
                 var imgid = $("id", xmlResult).text();
                 var image = $("img", xmlResult).text();
                 $("#"+imgid+" img").replaceWith(image);
                 $("#"+imgid+" .btndelete").attr("disabled", true);
                 reloadList();
                 ' . $js_reload_followers . '
             }
         }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:designs-detail.php


注:本文中的design::drawDetailTableJSRule方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。