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


PHP Helpers::CreateBreadCrumbs方法代码示例

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


在下文中一共展示了Helpers::CreateBreadCrumbs方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PageContent

function PageContent()
{
    ?>
    
            <div class="layout center-flex">

                <?php 
    $aLabels = array();
    $aLinks = array();
    $aLabels[0] = 'Home';
    $aLinks[0] = 'mainpage.php';
    $aLabels[1] = 'Category List';
    $aLinks[1] = 'category_list.php';
    $aLabels[2] = 'Color';
    $aLinks[2] = '';
    echo Helpers::CreateBreadCrumbs($aLabels, $aLinks);
    ?>

                <div class="bigbotspace flex-container space-between">
                    <p class="larger auto heading">Color</p>
                    <!--
                    <a href="category_admin.php" class="button_link"><button class="">Add New Color</button></a>
                    -->
                </div>
            </div>
    
            <div class="layout">
    
                <table class="tablestyle" id="list_table">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Overview Text</th>
                            <th>Images</th>
                            <th class="mid">Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
    $objColor = new Color();
    $oColor = $objColor->GetAllColorByCategoryId($_REQUEST['cat']);
    $objColorImage = new ColorImage();
    foreach ($oColor as $color) {
        echo '<tr id="img_' . $color->Id . '">' . PHP_EOL;
        echo '<td>' . $color->Id . '</td>' . PHP_EOL;
        echo '<td>' . substr($color->OverviewText, 0, 200) . '</td>' . PHP_EOL;
        echo '<td>(<a href="colorimage_list.php?cat=' . $_REQUEST['cat'] . '&color=' . $color->Id . '">' . $objColorImage->getCountColorImageByColorId($color->Id) . '</a>)</td>' . PHP_EOL;
        echo '<td class="mid"><a href="color_admin.php?cat=' . $_REQUEST['cat'] . '&id=' . $color->Id . '"><img src="img/edit-icon.png" /></a></td>' . PHP_EOL;
        echo '</tr>' . PHP_EOL;
    }
    ?>
                    </tbody>
                </table>
    
            </div> <!-- layout -->
    
<?php 
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:58,代码来源:color_list.php

示例2: PageContent

function PageContent()
{
    ?>
    
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
    
            <div class="layout center-flex">

                <?php 
    $aLabels = array();
    $aLinks = array();
    $aLabels[0] = 'Home';
    $aLinks[0] = 'mainpage.php';
    $aLabels[1] = 'Settings';
    $aLinks[1] = '';
    echo Helpers::CreateBreadCrumbs($aLabels, $aLinks);
    ?>

                <div class="bigbotspace flex-container space-between">
                    <p class="larger auto heading">Settings</p>
                    <a href="setting_admin.php" class="button_link"><button class="">Add New Setting</button></a>
                </div>
            </div>
    
            <div class="layout">
    
                <table class="tablestyle" id="list_table">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Setting Name</th>
                            <th>Setting Value</th>
                            <th class="mid">Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
    $db = new GenericDb();
    $rows = $db->run("select * from setting");
    foreach ($rows as $setting) {
        echo '<tr>' . PHP_EOL;
        echo '<td>' . $setting['id'] . '</td>' . PHP_EOL;
        echo '<td>' . $setting['setting_name'] . '</td>' . PHP_EOL;
        echo '<td>' . substr(strip_tags($setting['setting_value']), 0, 50) . '...</td>' . PHP_EOL;
        echo '<td class="mid"><a href="setting_admin.php?id=' . $setting['id'] . '"><img src="img/edit-icon.png" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="setting_delete.php?id=' . $setting['id'] . '"><img src="img/delete-icon.png" /></a></td>' . PHP_EOL;
        echo '</tr>' . PHP_EOL;
    }
    ?>
                    </tbody>
                </table>
    
            </div> <!-- layout -->
    
<?php 
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:56,代码来源:setting_list.php

示例3: PageContent

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">&nbsp;&nbsp;<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);
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:86,代码来源:homepageimage_admin.php

示例4: PageContent

function PageContent()
{
    global $objTechnology;
    global $objTechnologyInfo;
    ?>
    
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                // fix to preserve width of cells
                var fixHelper = function(e, ui) {
                    ui.children().each(function() {
                        $(this).width($(this).width());
                    });
                    return ui;
                };
                var saveIndex = function(e, ui) {
                    //alert("New position: " + ui.item.index());
                    //alert("Image Id: " + ui.item.attr("id"));
                    id = ui.item.attr("id").replace("img_", "");
                    $.ajax({
                        url: 'technologyinfoimage_list.php',
                        data: {
                            dragsort: 1,
                            idx: ui.item.index(),
                            id: id
                        },
                        type: 'POST',
                        dataType: 'html',
                        success: function (data) {
                            //alert("done");
                        },
                        error: function (xhr, status) {
                            alert('Sorry, there was a problem!');
                        }
                    });
                }; // end saveIndex
    
                $("#list_table tbody").sortable({
                    helper: fixHelper,
                    stop: saveIndex
                }).disableSelection();
    
            }); // end document.ready
        </script>
        <style>
            .icon-resize-vertical:hover {
                cursor:grab;
            }
        </style>        
    
            <div class="layout center-flex">

                <?php 
    $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] = '';
    echo Helpers::CreateBreadCrumbs($aLabels, $aLinks);
    ?>

                <div class="bigbotspace flex-container space-between">
                    <p class="larger auto heading"><?php 
    echo $objTechnology->TechnologyName;
    ?>
</p>
                    <a href="technologyinfoimage_admin.php?cat=<?php 
    echo $_REQUEST['cat'];
    ?>
&tech=<?php 
    echo $_REQUEST['tech'];
    ?>
&techinfo=<?php 
    echo $_REQUEST['techinfo'];
    ?>
" class="button_link"><button class="">Add New Technology Info Image</button></a>
                </div>
            </div>
    
            <div class="layout">
    
                <table class="tablestyle" id="list_table">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Image</th>
                            <th>Ordering</th>
                            <th class="mid">Actions</th>
                        </tr>
                    </thead>
                    <tbody>
//.........这里部分代码省略.........
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:101,代码来源:technologyinfoimage_list.php

示例5: PageContent

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>&nbsp;</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';
//.........这里部分代码省略.........
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:101,代码来源:itemimage_admin.php

示例6: PageContent

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">&nbsp;&nbsp;<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);
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:90,代码来源:featuredpartner_admin.php

示例7: PageContent

function PageContent()
{
    global $objLightTest;
    global $objLight;
    global $id;
    ?>

            <div class="layout laymidwidth">

                <?php 
    $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] = 'Delete Light Test';
    $aLinks[4] = '';
    echo Helpers::CreateBreadCrumbs($aLabels, $aLinks);
    ?>

                <p class="larger botspace heading">Light Test Delete</p>

                <script type="text/javascript">
                    $(document).ready(function() {
                        //$('#delete-form').submit(function() {
                        $('#submit').click(function() {
                            if (confirm("Are you sure?")) {
                                return true;
                            }
                            else {
                                return false;
                            }
                        });
                        $('#cancel').click(function() {
                            return true;
                        });
                    });
                </script>
                
                <div class="formstyle">
                    <form method="post" action="lighttest_delete.php" id="delete-form">
                        <p>Are you sure you want to delete this light test? This is irreversible.</p>
                        <p>&nbsp;</p>
                	    <table>
                	        <tr>
                	            <td><strong>Image: </strong></td>
                	            <td style="width: 20px;">&nbsp;</td>
                	            <td><img src="/<?php 
    echo $objLightTest->GetPath() . $objLightTest->ImageFileDark;
    ?>
" style="max-width: 200px;" /></td>
                	        </tr>
                	    </table>
                        <p>&nbsp;</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 $light;
    ?>
" />

                        <p class="submit"><input type="submit" name="commit" id="submit" value="Delete Light Test">&nbsp;&nbsp;<input type="submit" id="cancel" name="commit" value="Cancel"></p>

                    </form>
                </div>

            </div>

<?php 
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:81,代码来源:lighttest_delete.php

示例8: PageContent

function PageContent()
{
    global $objLight;
    ?>
    
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                // fix to preserve width of cells
                var fixHelper = function(e, ui) {
                    ui.children().each(function() {
                        $(this).width($(this).width());
                    });
                    return ui;
                };
                var saveIndex = function(e, ui) {
                    //alert("New position: " + ui.item.index());
                    //alert("Image Id: " + ui.item.attr("id"));
                    id = ui.item.attr("id").replace("img_", "");
                    $.ajax({
                        url: 'lighttest_list.php',
                        data: {
                            dragsort: 1,
                            idx: ui.item.index(),
                            id: id
                        },
                        type: 'POST',
                        dataType: 'html',
                        success: function (data) {
                            //alert("done");
                        },
                        error: function (xhr, status) {
                            alert('Sorry, there was a problem!');
                        }
                    });
                }; // end saveIndex
    
                $("#list_table tbody").sortable({
                    helper: fixHelper,
                    stop: saveIndex
                }).disableSelection();
    
            }); // end document.ready
        </script>
        <style>
            .icon-resize-vertical:hover {
                cursor:grab;
            }
        </style>        
    
            <div class="layout center-flex">

                <?php 
    $aLabels = array();
    $aLinks = array();
    $aLabels[0] = 'Home';
    $aLinks[0] = 'mainpage.php';
    $aLabels[1] = 'Category List';
    $aLinks[1] = 'category_list.php';
    $aLabels[2] = 'Light';
    $aLinks[2] = 'light_list.php&cat=' . $_REQUEST['cat'];
    $aLabels[3] = 'Light Test List';
    $aList[3] = '';
    echo Helpers::CreateBreadCrumbs($aLabels, $aLinks);
    ?>

                <div class="bigbotspace flex-container space-between">
                    <p class="larger auto heading">Light Tests</p>
                    <a href="lighttest_admin.php?cat=<?php 
    echo $_REQUEST['cat'];
    ?>
&light=<?php 
    echo $objLight->Id;
    ?>
" class="button_link"><button class="">Add New Light Test</button></a>
                </div>
            </div>
    
            <div class="layout">
    
                <table class="tablestyle" id="list_table">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <td>Test Image</th>
                            <th>Dark Image</th>
                            <th>Light Image</th>
                            <th class="mid">Order</th>
                            <th class="mid">Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
    $objLightTest = new LightTest();
    $oLightTest = $objLightTest->getAllLightTestByLightId($objLight->Id);
    foreach ($oLightTest as $lighttest) {
        echo '<tr id="img_' . $lighttest->Id . '">' . PHP_EOL;
        echo '<td>' . $lighttest->Id . '</td>' . PHP_EOL;
        echo '<td><img src="/' . $objLightTest->GetPath() . $lighttest->BackgroundImageFile . '" style="max-width: 100px;" /></td>' . PHP_EOL;
//.........这里部分代码省略.........
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:101,代码来源:lighttest_list.php

示例9: PageContent

function PageContent()
{
    $item = new Item($_REQUEST['item']);
    $category = new Category($item->CategoryId);
    ?>
    
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                // fix to preserve width of cells
                var fixHelper = function(e, ui) {
                    ui.children().each(function() {
                        $(this).width($(this).width());
                    });
                    return ui;
                };
                var saveIndex = function(e, ui) {
                    //alert("New position: " + ui.item.index());
                    //alert("Image Id: " + ui.item.attr("id"));
                    id = ui.item.attr("id").replace("img_", "");
                    $.ajax({
                        url: 'itemimage_list.php',
                        data: {
                            dragsort: 1,
                            idx: ui.item.index(),
                            id: id
                        },
                        type: 'POST',
                        dataType: 'html',
                        success: function (data) {
                            //alert("done");
                        },
                        error: function (xhr, status) {
                            alert('Sorry, there was a problem!');
                        }
                    });
                }; // end saveIndex
    
                $("#list_table tbody").sortable({
                    helper: fixHelper,
                    stop: saveIndex
                }).disableSelection();
    
            }); // end document.ready
        </script>
        <style>
            .icon-resize-vertical:hover {
                cursor:grab;
            }
        </style>        
    
            <div class="layout center-flex">

                <?php 
    $aLabels = array();
    $aLinks = array();
    $aLabels[0] = 'Home';
    $aLinks[0] = 'mainpage.php';
    $aLabels[1] = $category->CategoryName;
    $aLinks[1] = 'item_list.php?cat=' . $category->Id;
    $aLabels[2] = $item->ItemName;
    $aLinks[2] = '';
    echo Helpers::CreateBreadCrumbs($aLabels, $aLinks);
    ?>

<!-- 
                <div class="bigbotspace flex-container space-between">
                    <p class="larger auto heading"><?php 
    echo $item->ItemName;
    ?>
 Images</p>
                    <a href="itemimage_admin.php?item=<?php 
    echo $_REQUEST['item'];
    ?>
" class="button_link"><button class="">Add New Item Image</button></a>
                </div>
 -->
            </div>
    
            <div class="layout">
    
                <table class="tablestyle">
                    <thead>
                        <tr>
                            <th colspan="2">Item Settings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="item_admin.php?id=<?php 
    echo $item->Id;
    ?>
"><img src="img/edit-icon.png" /></a></th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Item Name:</td>
                            <td><?php 
    echo $item->ItemName;
    ?>
</td>
                        </tr>
                        <tr>
//.........这里部分代码省略.........
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:101,代码来源:item-all_list.php

示例10: PageContent

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>
//.........这里部分代码省略.........
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:101,代码来源:video_admin.php

示例11: PageContent

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">&nbsp;&nbsp;<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);
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:82,代码来源:information_admin.php

示例12: PageContent

function PageContent()
{
    global $objCategory;
    ?>
            <div class="layout center-flex">
                <?php 
    $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] = 'Item Highlights';
    $aLinks[4] = '';
    echo Helpers::CreateBreadCrumbs($aLabels, $aLinks);
    ?>

                <div class="bigbotspace flex-container space-between">
                    <p class="larger auto heading"><?php 
    echo $objCategory->CategoryName;
    ?>
</p>
                    <a href="itemimagehighlight_admin.php?cat=<?php 
    echo $objCategory->Id;
    ?>
&item=<?php 
    echo $_REQUEST['item'];
    ?>
&itemimage=<?php 
    echo $_REQUEST['itemimage'];
    ?>
" class="button_link"><button class="">Add New Item Image Highlight</button></a>
                </div>
            </div>
    
            <div class="layout">
    
                <table class="tablestyle" id="list_table">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Image</th>
                            <th>Left</th>
                            <th>Top</th>
                            <th class="mid">Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
    $objItemImage = new ItemImage($_REQUEST['item']);
    $objItemImageHighlight = new ItemImageHighlight();
    $oItemImageHighlight = $objItemImageHighlight->getAllItemImageHighlightByItemImageId($_REQUEST['itemimage']);
    foreach ($oItemImageHighlight as $itemimagehighlight) {
        echo '<tr id="img_' . $itemimagehighlight->Id . '">' . PHP_EOL;
        echo '<td>' . $itemimagehighlight->Id . '</td>' . PHP_EOL;
        echo '<td>';
        if ($objItemImage->ItemImageUrl != '') {
            echo '<img src="/' . $objItemImage->GetPath() . $objItemImage->ItemImageUrl . '" style="width:80px;">';
        }
        echo '</td>' . PHP_EOL;
        echo '<td>' . $itemimagehighlight->HotspotLeft . '</td>' . PHP_EOL;
        echo '<td>' . $itemimagehighlight->HotspotTop . '</td>' . PHP_EOL;
        echo '<td class="mid"><a href="itemimagehighlight_admin.php?cat=' . $_REQUEST['cat'] . '&item=' . $_REQUEST['item'] . '&itemimage=' . $_REQUEST['itemimage'] . '&id=' . $itemimagehighlight->Id . '"><img src="img/edit-icon.png" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="itemimagehighlight_delete.php?cat=' . $_REQUEST['cat'] . '&item=' . $_REQUEST['item'] . '&itemimage=' . $_REQUEST['itemimage'] . '&id=' . $itemimagehighlight->Id . '"><img src="img/delete-icon.png" /></a></td>' . PHP_EOL;
        echo '</tr>' . PHP_EOL;
    }
    ?>
                    </tbody>
                </table>
    
            </div> <!-- layout -->
    
<?php 
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:77,代码来源:itemimagehighlight_list.php

示例13: PageContent

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">&nbsp;&nbsp;<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);
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:95,代码来源:technologyinfoimage_admin.php

示例14: PageContent

function PageContent()
{
    global $objCategory;
    ?>
    
            <div class="layout center-flex">

                <?php 
    $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 Info List';
    $aLinks[3] = '';
    echo Helpers::CreateBreadCrumbs($aLabels, $aLinks);
    ?>

                <div class="bigbotspace flex-container space-between">
                    <p class="larger auto heading"><?php 
    echo $objCategory->CategoryName;
    ?>
</p>
                    <!-- a href="itemimage_admin.php?cat=<?php 
    echo $objCategory->Id;
    ?>
&item=<?php 
    echo $_REQUEST['item'];
    ?>
" class="button_link"><button class="">Add New Item Image</button></a -->
                </div>
            </div>
    
            <div class="layout">
    
                <table class="tablestyle" id="list_table">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Type</th>
                            <th>Text</th>
                            <th class="mid">Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
    $objItemInfoType = new ItemInfoType();
    $oItemInfoType = $objItemInfoType->getAllItemInfoType('item_info_type_name');
    foreach ($oItemInfoType as $iteminfotype) {
        $objItemInfo = new ItemInfo();
        $oItemInfo = $objItemInfo->getAllItemInfoByItemIdItemInfoTypeId($_REQUEST['item'], $iteminfotype->Id);
        echo '<tr id="img_' . $oItemInfo[0]->Id . '">' . PHP_EOL;
        echo '<td>' . $oItemInfo[0]->Id . '</td>' . PHP_EOL;
        echo '<td>' . $iteminfotype->ItemInfoTypeName . '</td>' . PHP_EOL;
        echo '<td>';
        if ($oItemInfo[0]->ItemInfo != '') {
            echo substr($oItemInfo[0]->ItemInfo, 0, 200);
        }
        echo '</td>' . PHP_EOL;
        echo '<td class="mid"><a href="iteminfo_admin.php?cat=' . $_REQUEST['cat'] . '&item=' . $_REQUEST['item'] . '&infoid=' . $iteminfotype->Id . '&type=' . $iteminfotype->Id . '&id=' . $oItemInfo[0]->Id . '"><img src="img/edit-icon.png" /></a></td>' . PHP_EOL;
        echo '</tr>' . PHP_EOL;
    }
    ?>
                    </tbody>
                </table>
    
            </div> <!-- layout -->
    
<?php 
}
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:73,代码来源:iteminfo_list.php

示例15: PageContent

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 
//.........这里部分代码省略.........
开发者ID:brandfeverinc,项目名称:coke-cooler,代码行数:101,代码来源:lighttest_admin.php


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