home *** CD-ROM | disk | FTP | other *** search
/ 74.208.221.89 / 74.208.221.89.zip / 74.208.221.89 / manage / maincat.aspx < prev    next >
Text File  |  2015-03-13  |  11KB  |  333 lines

  1. ∩╗┐<%@ Page Language="VB" Debug="true" %>
  2. <script runat="server">
  3.     Dim mycon As New conValue()
  4.     Dim username, useremail, permissions As String
  5.     Dim userid As Integer
  6.     Sub page_load()
  7.         If (Request.Cookies("gen")("uid") Is Nothing) Then
  8.             Response.Redirect("login.aspx")
  9.         Else
  10.             userid = Request.Cookies("gen")("uid")
  11.             username = Request.Cookies("gen")("name")
  12.             useremail = Request.Cookies("gen")("email")
  13.         End If
  14.     End Sub
  15. </script>
  16. <!DOCTYPE html>
  17. <html lang="en-us">
  18.     'Header Files
  19.     <!--#include file="head.ascx" -->
  20. <body class="fixed-header fixed-navigation fixed-page-footer fixed-ribbon smart-style-1">
  21.     <!-- possible classes: minified, fixed-ribbon, fixed-header, fixed-width-->
  22.     <!-- HEADER -->
  23.   <!--#include file="header.ascx" -->
  24.     <!-- END HEADER -->
  25.     <!-- Left panel : Navigation area -->
  26.     <!-- Note: This width of the aside area can be adjusted through LESS variables -->
  27.   <!--#include file="navigation.ascx" -->
  28.     <!-- END NAVIGATION -->
  29.     <!-- MAIN PANEL -->
  30.     <div id="main" role="main">
  31.  
  32.         <!-- RIBBON -->
  33.         <div id="ribbon">
  34.  
  35.             <span class="ribbon-button-alignment">
  36.                 <span id="refresh" class="btn btn-ribbon" data-action="resetWidgets" data-title="refresh" rel="tooltip" data-placement="bottom" data-original-title="
  37.                     <i class='text-warning fa fa-warning'></i> Warning! This will reset all your widget settings." data-html="true">
  38.                     <i class="fa fa-refresh"></i>
  39.                 </span>
  40.             </span>
  41.  
  42.             <!-- breadcrumb -->
  43.             <ol class="breadcrumb">
  44.                 <li>Home</li>
  45.                 <li>Dashboard</li>
  46.             </ol>
  47.             <!-- end breadcrumb -->
  48.             <!-- You can also add more buttons to the
  49.             ribbon for further usability
  50.  
  51.             Example below:
  52.  
  53.             <span class="ribbon-button-alignment pull-right">
  54.             <span id="search" class="btn btn-ribbon hidden-xs" data-title="search"><i class="fa-grid"></i> Change Grid</span>
  55.             <span id="add" class="btn btn-ribbon hidden-xs" data-title="add"><i class="fa-plus"></i> Add</span>
  56.             <span id="search" class="btn btn-ribbon" data-title="search"><i class="fa-search"></i> <span class="hidden-mobile">Search</span></span>
  57.             </span> -->
  58.  
  59.         </div>
  60.         <!-- END RIBBON -->
  61.         <!-- MAIN CONTENT -->
  62.         <div id="content">
  63.  
  64.            
  65.            
  66.  
  67.  
  68.  
  69.  
  70.           <!-- Widget ID (each widget will need unique ID)-->
  71.                             <div class="jarviswidget jarviswidget-color-greenDark" id="wid-id-2" data-widget-editbutton="false">
  72.                                 <!-- widget options:
  73.                                 usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
  74.  
  75.                                 data-widget-colorbutton="false"
  76.                                 data-widget-editbutton="false"
  77.                                 data-widget-togglebutton="false"
  78.                                 data-widget-deletebutton="false"
  79.                                 data-widget-fullscreenbutton="false"
  80.                                 data-widget-custombutton="false"
  81.                                 data-widget-collapsed="true"
  82.                                 data-widget-sortable="false"
  83.  
  84.                                 -->
  85.                                 <header>
  86.                                     <span class="widget-icon"> <i class="fa fa-table"></i> </span>
  87.                                     <h2>Group Categories</h2>
  88.  
  89.                                 </header>
  90.  
  91.                                 <!-- widget div-->
  92.                                 <div>
  93.  
  94.                                     <!-- widget edit box -->
  95.                                     <div class="jarviswidget-editbox">
  96.                                         <!-- This area used as dropdown edit box -->
  97.  
  98.                                     </div>
  99.                                     <!-- end widget edit box -->
  100.  
  101.                                     <!-- widget content -->
  102.                                     <div class="widget-body no-padding">
  103.                                         
  104.                                         <div class="alert alert-info no-margin fade in">
  105.                                             <button class="close" data-dismiss="alert">
  106.                                                 ├ù
  107.                                             </button>
  108.                                             <i class="fa-fw fa fa-info"></i>
  109.                                             Select Categories and Click on Next Button
  110.                                         </div>
  111.                                         <div class="table-responsive">
  112.                                             <form name="form1" action="maincat1.aspx" method="post">
  113.                                             <table class="table table-hover">
  114.                                                 <thead>
  115.                                                     <tr>
  116.                                                         <th>#</th>
  117.                                                         <th></th>
  118.                                                         <th>CAT LEVEL 1</th>
  119.                                                         <th>CAT LEVEL 2</th>
  120.                                                         <th>CAT LEVEL 3</th>
  121.                                                         <th>CAT LEVEL 4</th>
  122.                                                         <th>MAIN CAT</th>
  123.                                                     </tr>
  124.                                                 </thead>
  125.                                                 <tbody>
  126.                                                 <%
  127.                                                     Dim i As Integer = 1
  128.                                                     mycon.con("Select * from lk_categories order by id ASC", 1, 1)
  129.                                                     While mycon.sql1.Read
  130.                                                         If (mycon.sql1("cat1") <> "") Then
  131.                                                     %>
  132.                                                         <tr>
  133.                                                         <td><%= i%></td>
  134.                                                             <td><input type="checkbox" value="<%= mycon.sql1("id")%>" name="cd"/></td>
  135.                                                         <td><%= mycon.sql1("cat1")%></td>
  136.                                                         <td><%= mycon.sql1("cat2")%></td>
  137.                                                         <td><%= mycon.sql1("cat3")%></td>
  138.                                                             <td><%= mycon.sql1("cat4")%></td>
  139.                                                             <td><%= mycon.sql1("maincat")%></td>
  140.                                                     </tr>
  141.                                                 <%
  142.                                                 End If
  143.                                                 i = i + 1
  144.                                             End While
  145.                                                 mycon.sql1.Close()
  146.                                                     %>
  147.                                                     <tr>
  148.                                                         <td></td>
  149.                                                             <td><input type="submit" value="Next" /></td>
  150.                                                         <td></td>
  151.                                                         <td></td>
  152.                                                         <td></td>
  153.                                                             <td></td>
  154.                                                             <td></td>
  155.                                                     </tr>
  156.                                                 </tbody>
  157.                                             </table>
  158.                                             </form>    
  159.                                         </div>
  160.                                     </div>
  161.                                     <!-- end widget content -->
  162.  
  163.                                 </div>
  164.                                 <!-- end widget div -->
  165.  
  166.                             </div>
  167.                             <!-- end widget -->
  168.  
  169.  
  170.  
  171.             
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.         </div>
  181.         <!-- END MAIN CONTENT -->
  182.  
  183.     </div>
  184.     <!-- END MAIN PANEL -->
  185.     <!-- PAGE FOOTER -->
  186.     <!--#include file="pagefooter.ascx" -->
  187.     <!-- END PAGE FOOTER -->
  188.     <!-- SHORTCUT AREA : With large tiles (activated via clicking user name tag)
  189.     Note: These tiles are completely responsive,
  190.     you can add as many as you like
  191.     -->
  192.    <!--#include file="shortcuts.ascx" -->
  193.     <!-- END SHORTCUT AREA -->
  194.     <!--================================================== -->
  195.  
  196.        <!-- PACE LOADER - turn this on if you want ajax loading to show (caution: uses lots of memory on iDevices)-->
  197.         <script data-pace-options='{ "restartOnRequestAfter": true }' src="js/plugin/pace/pace.min.js"></script>
  198.  
  199.         <!-- Link to Google CDN's jQuery + jQueryUI; fall back to local -->
  200.         <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
  201.         <script>
  202.             if (!window.jQuery) {
  203.                 document.write('<script src="js/libs/jquery-2.0.2.min.js"><\/script>');
  204.             }
  205.         </script>
  206.  
  207.         <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
  208.         <script>
  209.             if (!window.jQuery.ui) {
  210.                 document.write('<script src="js/libs/jquery-ui-1.10.3.min.js"><\/script>');
  211.             }
  212.         </script>
  213.  
  214.         <!-- IMPORTANT: APP CONFIG -->
  215.         <script src="js/app.config.js"></script>
  216.  
  217.         <!-- JS TOUCH : include this plugin for mobile drag / drop touch events-->
  218.         <script src="js/plugin/jquery-touch/jquery.ui.touch-punch.min.js"></script> 
  219.  
  220.         <!-- BOOTSTRAP JS -->
  221.         <script src="js/bootstrap/bootstrap.min.js"></script>
  222.  
  223.         <!-- CUSTOM NOTIFICATION -->
  224.         <script src="js/notification/SmartNotification.min.js"></script>
  225.  
  226.         <!-- JARVIS WIDGETS -->
  227.         <script src="js/smartwidgets/jarvis.widget.min.js"></script>
  228.  
  229.         <!-- EASY PIE CHARTS -->
  230.         <script src="js/plugin/easy-pie-chart/jquery.easy-pie-chart.min.js"></script>
  231.  
  232.         <!-- SPARKLINES -->
  233.         <script src="js/plugin/sparkline/jquery.sparkline.min.js"></script>
  234.  
  235.         <!-- JQUERY VALIDATE -->
  236.         <script src="js/plugin/jquery-validate/jquery.validate.min.js"></script>
  237.  
  238.         <!-- JQUERY MASKED INPUT -->
  239.         <script src="js/plugin/masked-input/jquery.maskedinput.min.js"></script>
  240.  
  241.         <!-- JQUERY SELECT2 INPUT -->
  242.         <script src="js/plugin/select2/select2.min.js"></script>
  243.  
  244.         <!-- JQUERY UI + Bootstrap Slider -->
  245.         <script src="js/plugin/bootstrap-slider/bootstrap-slider.min.js"></script>
  246.  
  247.         <!-- browser msie issue fix -->
  248.         <script src="js/plugin/msie-fix/jquery.mb.browser.min.js"></script>
  249.  
  250.         <!-- FastClick: For mobile devices -->
  251.         <script src="js/plugin/fastclick/fastclick.min.js"></script>
  252.  
  253.         <!--[if IE 8]>
  254.  
  255.         <h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>
  256.  
  257.         <![endif]-->
  258.  
  259.         <!-- Demo purpose only -->
  260.         <script src="js/demo.min.js"></script>
  261.  
  262.         <!-- MAIN APP JS FILE -->
  263.         <script src="js/app.min.js"></script>
  264.  
  265.         <!-- ENHANCEMENT PLUGINS : NOT A REQUIREMENT -->
  266.         <!-- Voice command : plugin -->
  267.         <script src="js/speech/voicecommand.min.js"></script>
  268.  
  269.         <!-- PAGE RELATED PLUGIN(S) 
  270.         <script src="..."></script>-->
  271.  
  272.         
  273.  
  274.         <script type="text/javascript">
  275.  
  276.             // DO NOT REMOVE : GLOBAL FUNCTIONS!
  277.  
  278.             $(document).ready(function () {
  279.  
  280.                 pageSetUp();
  281.  
  282.                 // PAGE RELATED SCRIPTS
  283.  
  284.                 // switch style change
  285.                 $('input[name="checkbox-style"]').change(function () {
  286.                     //alert($(this).val())
  287.                     $this = $(this);
  288.  
  289.                     if ($this.attr('value') === "switch-1") {
  290.                         $("#switch-1").show();
  291.                         $("#switch-2").hide();
  292.                     } else if ($this.attr('value') === "switch-2") {
  293.                         $("#switch-1").hide();
  294.                         $("#switch-2").show();
  295.                     }
  296.  
  297.                 });
  298.  
  299.                 // tab - pills toggle
  300.                 $('#show-tabs').click(function () {
  301.                     $this = $(this);
  302.                     if ($this.prop('checked')) {
  303.                         $("#widget-tab-1").removeClass("nav-pills").addClass("nav-tabs");
  304.                     } else {
  305.                         $("#widget-tab-1").removeClass("nav-tabs").addClass("nav-pills");
  306.                     }
  307.  
  308.                 });
  309.  
  310.             });
  311.  
  312.         </script>
  313.  
  314.         <!-- Your GOOGLE ANALYTICS CODE Below -->
  315.         <script type="text/javascript">
  316.             var _gaq = _gaq || [];
  317.             _gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
  318.             _gaq.push(['_trackPageview']);
  319.  
  320.             (function () {
  321.                 var ga = document.createElement('script');
  322.                 ga.type = 'text/javascript';
  323.                 ga.async = true;
  324.                 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  325.                 var s = document.getElementsByTagName('script')[0];
  326.                 s.parentNode.insertBefore(ga, s);
  327.             })();
  328.  
  329.         </script>
  330.  
  331. </body>
  332.  
  333. </html>