예제 #1
0
     getInputText();
     break;
 case "element-number":
     getInputNumber();
     break;
 case "element-paragraph-text":
     getAreaText();
     break;
 case "element-checkboxes":
     getCheckboxes();
     break;
 case "element-multiple-choice":
     getRadio();
     break;
 case "element-dropdown":
     getDropdown();
     break;
 case "element-table":
     getTable();
     break;
 case "element-section-break":
     getSectionBreak();
     break;
 case "element-option":
     getOpcion();
     break;
 case "element-date":
     getFecha();
     break;
 case "element-time":
     getHora();
                                                                    <td  align='left'><input name="txtProductCode"  type="text" class="textarea" id="txtProductCode" value="<?php 
    echo htmlentities($txtProductCode);
    ?>
" size="20" maxlength="20">
                                                                        <span class="help"><a  title="Products Identification number" href="#"><img src="../images/question_mark.jpg"  title="Products Identification number" border="0" height="15"></a></span>
                                                                    </td></tr>
                                                                <tr style="height: 250px;" valign="top"><td align="right" >Additional Categories  &nbsp;</td>
	                                                                <td ></td>
	                                                                <td align='left'> <?php 
    if ($_POST['control_1'] != '') {
        $additional_categories_list = implode(',', $_POST['control_1']);
        $additional_categories_list = $additional_categories_list . ',' . $catid;
    } else {
        $additional_categories_list = $catid;
    }
    echo getDropdown($additional_categories_list, $catid);
    ?>
	                                                                    <span class="help"><a href="#" title="Select additional categories"><img src="../images/question_mark.jpg" border="0" height="15"></a></span>
	                                                                </td>
                                                            	</tr>
                                                                <tr><td align="right" valign="top">Description&nbsp;<span class="required">*</span></td>
                                                                    <td valign="top" >:</td>
                                                                    <td align='left'>
                                                                        <textarea id="editor1" rows="15" cols="100" name="txtDescription"><?php 
    echo stripslashes($_POST['txtDescription']);
    ?>
</textarea>

                                                                    </td></tr>
                                                                <!--<tr>
                                                                    <td align="right">Digital Product&nbsp;</td>
    echo htmlentities($txtProductCode);
    ?>
" size="20" maxlength="20">
                                                                    <span class="help"><a href="#" title="Products Identification number"><img src="../images/question_mark.jpg" border="0" height="15"></a></span>
                                                                </td></tr>
                                                            <tr style="height: 250px;" valign="top"><td align="right" >Additional Categories  &nbsp;</td>
                                                                <td ></td>
                                                                <td align='left'> <?php 
    if ($_POST['control_1'] != '') {
        $additional_categories_list = implode(',', $_POST['control_1']);
        $additional_categories_list = $additional_categories_list . ',' . $catid;
    } else {
        $additional_categories_list = $catid;
    }
    $additional_categoriesArray = explode(',', $additional_categories_list);
    getDropdown($additional_categoriesArray, $catid);
    //echo getDropdown($additional_categories_list);
    ?>
                                                                    <span class="help"><a href="#" title="Select additional categories"><img src="../images/question_mark.jpg" border="0" height="15"></a></span>
                                                                </td>
                                                            </tr>
                                                            <tr><td align="right" ><?php 
    echo TEXT_VENDOR;
    ?>
&nbsp;<span class="required">*</span></td>
                                                                <td >:</td>
                                                                <td align='left'><?php 
    echo makeDropDownList("ddlArtist", $artistlist, $ddlArtist, true, 'textarea', $properties, $behaviors);
    ?>
                                                                    <span class="help"><a href="#" title="Which Seller's product"><img src="../images/question_mark.jpg" border="0" height="15"></a></span>
                                                                </td></tr>
                                </tr>

                                <tr><td align="left" width="25%">Product Name &nbsp; <span class="required">*</span></td><td width="5%">&nbsp;</td><td width="70%" align="left"><input class="textarea" type="text" value="<?php 
echo htmlentities(stripslashes($txtProductName));
?>
" name="txtProductName" size="50" maxlength="100"></td></tr>
                                <tr><td align="left" width="25%">Product Code &nbsp; </td><td width="5%">&nbsp;</td><td align="left"><input class="textarea" type="text" value="<?php 
echo htmlentities(stripslashes($txtProductCode));
?>
" name="txtProductCode" size="50" maxlength="100"></td></tr>
                                <tr style="height: 250px;" valign="top"><td align="left" >Additional Categories  &nbsp;</td>
                                                                <td ></td>
                                                                <td align='left'> 
                                                                    <?php 
$additional_categoriesArray = explode(',', $additional_categories);
getDropdown($additional_categoriesArray);
?>
                                                                    <span class="help"><a href="#" title="Select additional categories"><img src="../images/question_mark.jpg" border="0" height="15"></a></span>
                                                                </td></tr>
                                <tr>
                                    <td align="left" valign="top">Description&nbsp;<span class="required">*</span></td><td >&nbsp;</td><td align="left">
                                        <textarea id="editor1" rows="15" cols="100" name="txtDescription"><?php 
echo stripslashes($txtDescription);
?>
</textarea>
                                    </td>
                                </tr>
                                <tr><td align="right" >Made to Order Item&nbsp; </td>
                                    <td >:</td>
                                    <td align='left'><input type="checkbox" name="madetoorderitem"  value="Y" id="madetoorderitem" <?php 
echo $madetoorderitem == 'Y' ? 'checked' : '';