function PageContent() { global $partner_name; global $link_url; global $image_file; global $id; global $aDropFields; global $aDropFieldTypes; ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_title = 'Featured Partner Add'; } else { $bread_title = 'Featured Partner Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Featured Partner'; $aLinks[1] = 'featuredpartner_list.php'; $aLabels[2] = $bread_title; $aLinks[2] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger botspace heading"><?php echo $bread_title; ?> </p> <div class="formstyle "> <form method="post" action="featuredpartner_admin.php" enctype='multipart/form-data'> <table class="form-table"> <tr> <td class="table-label" align="right">Partner Name: </td> <td><input class="form midform" type="text" name="partner_name" value="<?php echo $partner_name; ?> " placeholder="Partner Name"></td> </tr> <tr> <td class="table-label" align="right">URL: </td> <td><input class="form midform" type="text" name="link_url" value="<?php echo $link_url; ?> " placeholder="URL"></td> </tr> <tr> <td class="table-label" valign="top" align="right"><strong>Image File: </strong></td> <td class="field"><input type="file" class="slick" size="50" maxlength="200" name="image_file" id="image_file" value="<?php echo htmlspecialchars($image_file); ?> "/> <em>(Should be 56 pixels high)</em> <?php if ($image_file != '') { echo '<br /><br /><strong>Current File:</strong> ' . $image_file; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Featured Partner"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> </form> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $item_id; global $item_image_side; global $item_image_url; global $path; global $aDropFields; global $aDropFieldTypes; $item = new Item($item_id); $category = new Category($item->CategoryId); ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_image_name = 'Item Image Add'; } else { $bread_image_name = 'Item Image Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = $objCategory->CategoryName; $aLinks[1] = 'category_list.php'; $aLabels[2] = 'Items'; $aLinks[2] = 'item_list.php?cat=' . $_REQUEST['cat']; $aLabels[3] = 'Item Images'; $aLinks[3] = 'itemimage_list.php?cat=' . $_REQUEST['cat'] . '&item=' . $_REQUEST['item']; $aLabels[4] = $bread_image_name; $aLinks[4] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_image_name; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="itemimage_admin.php" enctype='multipart/form-data'> <table class="form-table"> <?php if ($item_image_url != '') { ?> <tr> <td> </td> <td> <img src="/<?php echo $path . $item_image_url; ?> " style="width:120px;"> </td> </tr> <?php } ?> <tr> <td class="table-label" align="right" valign="top">Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file" id="image_file" value="<?php echo htmlspecialchars($item_image_url); ?> "/> <?php if ($item_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $item_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> <tr> <td class="table-label" align="right">Side: </td> <td> <select name="item_image_side" class="form"> <option value=""></option> <option value="Front"<?php if ($item_image_side == 'Front') { echo ' selected'; } ?> >Front</option> <option value="Left"<?php if ($item_image_side == 'Left') { echo ' selected'; } ?> >Left</option> <option value="Right"<?php if ($item_image_side == 'Right') { echo ' selected'; } ?> >Right</option> <option value="Back"<?php if ($item_image_side == 'Back') { echo ' selected'; } ?> >Back</option> <option value="Open"<?php if ($item_image_side == 'Open') { echo ' selected'; } ?> >Open</option> </select> </td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Item Image"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <input type="hidden" name="cat" value="<?php echo $_REQUEST['cat']; ?> " /> <input type="hidden" name="item" value="<?php echo $_REQUEST['item']; ?> " /> </form> </div> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $technology_name; global $technology_headline; global $technology_button_image_url; global $technology_button_active_image_url; global $aDropFields; global $aDropFieldTypes; ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <script type="text/javascript" src="tinymce/js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinyMCE.init({ selector : "textarea.mceEditor", plugins : "image code pagebreak table spellchecker preview searchreplace print contextmenu paste fullscreen nonbreaking", image_advtab : true, forced_root_block : "", setup: function (editor) { editor.on('init', function(args) { editor = args.target; editor.on('NodeChange', function(e) { if (e && e.element.nodeName.toLowerCase() == 'img') { // width = e.element.width; // height = e.element.height; tinyMCE.DOM.setAttribs(e.element, {'class':'img_responsive', 'height' : null, 'width' : null}); tinyMCE.DOM.setStyle(e.element, 'max-width', '100%'); } }); }); }, content_css : ["../css/bootstrip.min.css"], //document_base_url : "http://havells.boxkitemedia.com" }); </script> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_image_name = ' Technology Add'; } else { $bread_image_name = ' Technology Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Category List'; $aLinks[1] = 'category_list.php'; $aLabels[2] = 'Technology'; $aLinks[2] = 'technology_list.php?cat=' . $_REQUEST['cat']; $aLabels[3] = $bread_image_name; $aLinks[3] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_image_name; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="technology_admin.php" enctype='multipart/form-data'> <table class="form-table"> <tr> <td class="table-label" align="right">Technology Name: </td> <td><input class="form midform" type="text" name="technology_name" value="<?php echo $technology_name; ?> " placeholder="Technology Name" /></td> </tr> <tr> <td class="table-label" align="right">Technology Headline: </td> <td><input class="form midform" type="text" name="technology_headline" value="<?php echo $technology_headline; ?> " placeholder="Technology Headline" /></td> </tr> <tr> <td class="table-label" align="right" valign="top">Icon File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="technology_button_image_url" id="technology_button_image_url" value="<?php echo htmlspecialchars($technology_button_image_url); ?> "/> <?php if ($technology_button_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $technology_button_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> <tr> <td class="table-label" align="right" valign="top">Icon Active File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="technology_button_active_image_url" id="technology_button_active_image_url" value="<?php echo htmlspecialchars($technology_button_active_image_url); ?> "/> <?php if ($technology_button_active_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $technology_button_active_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[1]); ?> </td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Technology"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <input type="hidden" name="cat" value="<?php echo $_REQUEST['cat']; ?> " /> </form> </div> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $item_id; global $item_video_title; global $item_video_url; global $item_video_placeholder_image_url; global $path; global $aDropFields; global $aDropFieldTypes; $item = new Item($item_id); $category = new Category($item->CategoryId); ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_image_name = 'Item Video Add'; } else { $bread_image_name = 'Item Video Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = $category->CategoryName; $aLinks[1] = 'category_list.php'; $aLabels[2] = 'Items'; $aLinks[2] = 'item_list.php?cat=' . $_REQUEST['cat']; $aLabels[3] = 'Item Videos'; $aLinks[3] = 'itemvideo_list.php?cat=' . $_REQUEST['cat'] . '&item=' . $_REQUEST['item']; $aLabels[4] = $bread_image_name; $aLinks[4] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_image_name; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="itemvideo_admin.php" enctype='multipart/form-data'> <table class="form-table"> <tr> <td class="table-label" align="right">Video Title: </td> <td><input class="form midform" type="text" name="item_video_title" value="<?php echo $item_video_title; ?> " placeholder="Video Title" /></td> </tr> <tr> <td class="table-label" align="right">Video File: </td> <td><input class="form midform" type="text" name="item_video_url" value="<?php echo $item_video_url; ?> " placeholder="Video File Name" /> MP4, WMV or MOV</td> </tr> <tr> <td class="table-label" align="right" valign="top">Upload Video: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="video_file" id="video_file" value="<?php echo htmlspecialchars($item_video_url); ?> "/> <?php if ($item_video_url != '') { echo '<br ><strong>Current File:</strong> ' . $item_video_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> <tr> <td class="table-label"> </td> <td><p>Note: if you have trouble uploading a large file, use FTP to place the file into the folder 'files/itemvideos', then save the file name in 'Video File' above.</p></td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Item Video"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <input type="hidden" name="cat" value="<?php echo $_REQUEST['cat']; ?> " /> <input type="hidden" name="item" value="<?php echo $_REQUEST['item']; ?> " /> </form> </div> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $category_name; global $category_description; global $background_color; global $category_image_url; global $explore_all_image_url; global $explore_all_active_image_url; global $technology_image_url; global $technology_active_image_url; global $title_heading; global $subtitle_heading; global $contact_email; global $is_active; global $aDropFields; global $aDropFieldTypes; ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <script type="text/javascript" src="tinymce/js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinyMCE.init({ selector : "textarea.mceEditor", plugins : "image code pagebreak table spellchecker preview searchreplace print contextmenu paste fullscreen nonbreaking", image_advtab : true, forced_root_block : "", setup: function (editor) { editor.on('init', function(args) { editor = args.target; editor.on('NodeChange', function(e) { if (e && e.element.nodeName.toLowerCase() == 'img') { // width = e.element.width; // height = e.element.height; tinyMCE.DOM.setAttribs(e.element, {'class':'img_responsive', 'height' : null, 'width' : null}); tinyMCE.DOM.setStyle(e.element, 'max-width', '100%'); } }); }); }, content_css : ["../css/bootstrip.min.css"], //document_base_url : "http://havells.boxkitemedia.com" }); </script> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_image_name = 'Category Add'; } else { $bread_image_name = 'Category Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Categories'; $aLinks[1] = 'category_list.php'; $aLabels[2] = $bread_image_name; $aLinks[2] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_image_name; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="category_admin.php" enctype='multipart/form-data'> <table class="form-table"> <tr> <td class="table-label" align="right">Category Name: </td> <td><input class="form midform" type="text" name="category_name" value="<?php echo $category_name; ?> " placeholder="Category Name" /></td> </tr> <tr> <td class="table-label" align="right">Title Heading: </td> <td><input class="form midform" type="text" name="title_heading" value="<?php echo $title_heading; ?> " placeholder="Title Heading" /></td> </tr> <tr> <td class="table-label" align="right">Subtitle Heading: </td> <td><input class="form midform" type="text" name="subtitle_heading" value="<?php echo $subtitle_heading; ?> " placeholder="Subtitle Heading" /></td> </tr> <tr> <td class="table-label" align="right">Contact Email: </td> <td><input class="form midform" type="text" name="contact_email" value="<?php echo $contact_email; ?> " placeholder="Contact Email" /></td> </tr> <tr> <td class="table-label" align="right">Category Description: </td> <td><textarea class="form midform mceEditor" name="category_description" placeholder="Category Description"><?php echo $category_description; ?> </textarea></td> </tr> <tr> <td class="table-label" align="right">Background Color: </td> <td><input class="form midform" type="text" name="background_color" value="<?php echo $background_color; ?> " placeholder="Background Color" /> Examples: "#F40000", "rgb(255,255,0)"</td> </tr> <tr> <td class="table-label" align="right">Category Image: </td> <td><input class="form midform" type="text" name="category_image_url" value="<?php echo $category_image_url; ?> " placeholder="Image File" /></td> </tr> <tr> <td class="table-label" align="right" valign="top">Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file" id="image_file" value="<?php echo htmlspecialchars($category_image_url); ?> "/> <?php if ($category_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $category_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> <tr> <td class="table-label" align="right" valign="top">Explore All Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file_exall" id="image_file_exall" value="<?php echo htmlspecialchars($explore_all_image_url); ?> "/> <?php if ($explore_all_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $explore_all_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[1]); ?> </td> </tr> <tr> <td class="table-label" align="right" valign="top">Explore All Active Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file_exall_active" id="image_file_exall_active" value="<?php echo htmlspecialchars($explore_all_active_image_url); ?> "/> <?php if ($explore_all_active_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $explore_all_active_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[2]); ?> </td> </tr> <tr> <td class="table-label" align="right" valign="top">Technology Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file_tech" id="image_file_tech" value="<?php echo htmlspecialchars($technology_image_url); ?> "/> <?php if ($technology_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $technology_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[3]); ?> </td> </tr> <tr> <td class="table-label" align="right" valign="top">Technology Active Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file_tech_active" id="image_file_tech_active" value="<?php echo htmlspecialchars($technology_active_image_url); ?> "/> <?php if ($technology_active_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $technology_active_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[4]); ?> </td> </tr> <tr> <td class="table-label" align="right">Is Active?: </td> <td><input type="checkbox" name="is_active" value="1"<?php if ($is_active) { echo ' checked'; } ?> > </td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Category"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> </form> </div> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $sound_id; global $image_file; global $path; global $aDropFields; global $aDropFieldTypes; ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_image_name = 'Sound Image Add'; } else { $bread_image_name = 'Sound Image Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Category List'; $aLinks[1] = 'category_list.php'; $aLabels[2] = 'Sound List'; $aLinks[2] = 'sound_list.php'; $aLabels[3] = 'Sound Images'; $aLinks[3] = 'soundimage_list.php?cat=' . $_REQUEST['cat'] . '&sound=' . $_REQUEST['sound']; $aLabels[4] = $bread_image_name; $aLinks[4] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_image_name; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="soundimage_admin.php" enctype='multipart/form-data'> <table class="form-table"> <?php if ($image_file != '') { ?> <tr> <td> </td> <td> <img src="/<?php echo $path . $image_file; ?> " style="width:120px;"> </td> </tr> <?php } ?> <tr> <td class="table-label" align="right" valign="top">Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file" id="image_file" value="<?php echo htmlspecialchars($image_file); ?> "/> <?php if ($image_file != '') { echo '<br ><strong>Current File:</strong> ' . $image_file; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Sound Image"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <input type="hidden" name="cat" value="<?php echo $cat; ?> " /> <input type="hidden" name="sound" value="<?php echo $_REQUEST['sound']; ?> " /> </form> </div> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $title; global $summary; global $image_file; global $video_embed; global $id; global $aDropFields; global $aDropFieldTypes; ?> <script type="text/javascript" src="tinymce/js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinyMCE.init({ selector : "textarea.mceEditor", plugins : "image code pagebreak table spellchecker preview searchreplace print contextmenu paste fullscreen nonbreaking", image_advtab : true, forced_root_block : "", setup: function (editor) { editor.on('init', function(args) { editor = args.target; editor.on('NodeChange', function(e) { if (e && e.element.nodeName.toLowerCase() == 'img') { // width = e.element.width; // height = e.element.height; tinyMCE.DOM.setAttribs(e.element, {'class':'img_responsive', 'height' : null, 'width' : null}); tinyMCE.DOM.setStyle(e.element, 'max-width', '100%'); } }); }); }, content_css : ["../css/bootstrip.min.css"], document_base_url : "http://havells.boxkitemedia.com" }); </script> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_title = 'Video Add'; } else { $bread_title = 'Video Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Videos'; $aLinks[1] = 'video_list.php'; $aLabels[2] = $bread_title; $aLinks[2] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger botspace heading"><?php echo $bread_title; ?> </p> <div class="formstyle "> <form method="post" action="video_admin.php"> <table class="form-table"> <tr> <td class="table-label" align="right">Title: </td> <td><input class="form midform" type="text" name="title" value="<?php echo $title; ?> " placeholder="Title"></td> </tr> <tr> <td class="table-label" align="right">Summary: </td> <td><textarea class="form midform mceEditor" name="summary" placeholder="Summary"><?php echo $summary; ?> </textarea></td> </tr> <tr> <td class="table-label" align="right" valign="top">Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file" id="image_file" value="<?php echo htmlspecialchars($image_file); ?> "/> <?php if ($image_file != '') { echo '<br ><strong>Current File:</strong> ' . $image_file; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> <tr> <td class="table-label" align="right" style="vertical-align: top;">Video Code: </td> <td><textarea class="form midform mceNoEditor" name="video_embed" style="height: 200px;" placeholder="Video Code"><?php echo $video_embed; ?> </textarea></td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Video"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> </form> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $title; global $pdf_file; global $aDropFields; global $aDropFieldTypes; ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_title = 'Information Add'; } else { $bread_title = 'Information Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Information'; $aLinks[1] = 'information_list.php'; $aLabels[2] = $bread_title; $aLinks[2] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_title; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="information_admin.php" enctype='multipart/form-data'> <table class="form-table"> <tr> <td class="table-label" align="right">Title: </td> <td><input class="form midform" type="text" name="title" value="<?php echo $title; ?> " placeholder="Title" /></td> </tr> <tr> <td class="table-label" align="right" valign="top">PDF File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="pdf_file" id="pdf_file" value="<?php echo htmlspecialchars($pdf_file); ?> "/> <?php if ($pdf_file != '') { echo '<br ><strong>Current File:</strong> ' . $pdf_file; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Information"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> </form> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $item_id; global $technology_info_image_url; global $aDropFields; global $aDropFieldTypes; $objTechnology = new Technology($_REQUEST['tech']); ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_image_name = 'Technology Info Image Add'; } else { $bread_image_name = 'Technology Info Image Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Category List'; $aLinks[1] = 'category_list.php'; $aLabels[2] = 'Technology'; $aLinks[2] = 'technology_list.php?cat=' . $_REQUEST['cat']; $aLabels[3] = $objTechnology->TechnologyName; $aLinks[3] = 'technologyinfo_list.php?cat=' . $_REQUEST['cat'] . '&tech=' . $_REQUEST['tech']; $aLabels[4] = 'Technology Info Images'; $aLinks[4] = 'technologyinfoimage_list.php?cat=' . $_REQUEST['cat'] . '&tech=' . $_REQUEST['tech'] . '&techimage=' . $_REQUEST['techimage']; $aLabels[5] = $bread_image_name; $aLinks[5] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_image_name; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="technologyinfoimage_admin.php" enctype='multipart/form-data'> <table class="form-table"> <tr> <td class="table-label" align="right" valign="top">Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="technology_info_image_url" id="technology_info_image_url" value="<?php echo htmlspecialchars($technology_info_image_url); ?> "/> <?php if ($technology_info_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $technology_info_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Technology Info Image"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <input type="hidden" name="cat" value="<?php echo $_REQUEST['cat']; ?> " /> <input type="hidden" name="tech" value="<?php echo $_REQUEST['tech']; ?> " /> <input type="hidden" name="techinfo" value="<?php echo $_REQUEST['techinfo']; ?> " /> </form> </div> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $light_id; global $dark_text; global $light_text; global $rgba_value; global $rgba_value_right; global $image_file_dark; global $image_file_light; global $background_image_file; global $path; global $aDropFields; global $aDropFieldTypes; ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_image_name = 'Light Test Add'; } else { $bread_image_name = 'Light Test Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Category List'; $aLinks[1] = 'category_list.php'; $aLabels[2] = 'Light List'; $aLinks[2] = 'light_list.php'; $aLabels[3] = 'Light Tests'; $aLinks[3] = 'lighttest_list.php?cat=' . $_REQUEST['cat'] . '&light=' . $_REQUEST['light']; $aLabels[4] = $bread_image_name; $aLinks[4] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_image_name; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="lighttest_admin.php" enctype='multipart/form-data'> <table class="form-table"> <tr> <td class="table-label" align="right" valign="top">Dark Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file_dark" id="image_file_dark" value="<?php echo htmlspecialchars($image_file_dark); ?> "/> <?php if ($image_file_dark != '') { echo '<br ><strong>Current File:</strong> ' . $image_file_dark; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> <tr> <td class="table-label" align="right">Dark Image Text: </td> <td><input class="form midform" type="text" name="dark_text" style="width: 90%;" value="<?php echo $dark_text; ?> " placeholder="Dark Image Text" /></td> </tr> <tr> <td class="table-label" align="right" valign="top">Light Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="image_file_light" id="image_file_light" value="<?php echo htmlspecialchars($image_file_light); ?> "/> <?php if ($image_file_light != '') { echo '<br ><strong>Current File:</strong> ' . $image_file_light; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[1]); ?> </td> </tr> <tr> <td class="table-label" align="right">Light Image Text: </td> <td><input class="form midform" type="text" name="light_text" style="width: 90%;" value="<?php echo $light_text; ?> " placeholder="Light Image Text" /></td> </tr> <tr> <td class="table-label" align="right" valign="top">Test Image: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="background_image_file" id="background_image_file" value="<?php echo htmlspecialchars($background_image_file); ?> "/> <?php if ($background_image_file != '') { echo '<br ><strong>Current File:</strong> ' . $background_image_file; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[2]); ?> </td> </tr> <tr> <td class="table-label" align="right">RGBA Value (Left): </td> <td><input class="form midform" type="text" name="rgba_value" style="width: 90%;" value="<?php echo $rgba_value; ?> " placeholder="RGBA Value (Left)" /></td> </tr> <tr> <td class="table-label" align="right">RGBA Value (Right): </td> <td><input class="form midform" type="text" name="rgba_value_right" style="width: 90%;" value="<?php echo $rgba_value_right; ?> " placeholder="RGBA Value (Right)" /></td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Light Test"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <input type="hidden" name="cat" value="<?php echo $cat; ?> " /> <input type="hidden" name="light" value="<?php echo $_REQUEST['light']; ?> " /> </form> </div> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }
function PageContent() { global $id; global $is_active; global $homepage_image_url; global $aDropFields; global $aDropFieldTypes; ?> <?php // Set up Drag And Drop styles for the drop area echo DragAndDrop::SetStyles(); ?> <div id="content"> <div class="layout"> <?php if ($id == 0) { $bread_image_name = 'Home Page Image Add'; } else { $bread_image_name = 'Home Page Image Edit'; } $aLabels = array(); $aLinks = array(); $aLabels[0] = 'Home'; $aLinks[0] = 'mainpage.php'; $aLabels[1] = 'Home Page Images'; $aLinks[1] = 'homepageimage_list.php'; $aLabels[2] = $bread_image_name; $aLinks[2] = ''; echo Helpers::CreateBreadCrumbs($aLabels, $aLinks); ?> <p class="larger2 botspace heading"><?php echo $bread_image_name; ?> </p> <div class="formstyle "> <form method="post" name="admin" id="admin" action="homepageimage_admin.php" enctype='multipart/form-data'> <table class="form-table"> <tr> <td class="table-label" align="right" valign="top">Image File: </td> <td><input type="file" class="slick" size="50" maxlength="200" name="homepage_image_url" id="homepage_image_url" value="<?php echo htmlspecialchars($homepage_image_url); ?> "/> <?php if ($homepage_image_url != '') { echo '<br ><strong>Current File:</strong> ' . $homepage_image_url; } // Set up Drop Area echo DragAndDrop::CreateArea($aDropFields[0]); ?> </td> </tr> <tr> <td class="table-label" align="right" valign="top">Is Active?: </td> <td> <input type="checkbox" <?php if ($is_active == '1') { echo 'checked'; } ?> name="is_active" value="1" /> </td> </tr> </table> <p class="submit"><input type="submit" name="commit" value="Save Home Page Image"> <input type="submit" name="commit" value="Cancel"></p> <input type="hidden" name="id" value="<?php echo $id; ?> " /> </form> </div> </div> <?php // Set up Drag and Drop javascript controls echo DragAndDrop::Control($aDropFields, $aDropFieldTypes); }