Skip to content
This repository
  • 1 commit
  • 11 files changed
  • 0 comments
  • 1 contributor
22  AdminPages/Manager/Manager.aspx
@@ -19,26 +19,8 @@
19 19
     <script src="../../SplitViewJS/jqm.page.params.js" type="text/javascript"></script>
20 20
     <script src="../../jquery.ui.touch-punch.min.js" type="text/javascript"></script>
21 21
 
22  
-  <script type="text/javascript">
23  
-
24  
-  $(document).bind('pageinit', function() {
25  
-    $( "#menuList" ).sortable();
26  
-    $( "#menuList" ).disableSelection();
27  
-    <!-- Refresh list to the end of sort to have a correct display -->
28  
-    $( "#menuList" ).bind( "sortstop", function(event, ui) {
29  
-      $('#menuList').listview('refresh');
30  
-    });
31  
-  });
32  
-  </script>
33  
-
34  
-
35  
-    <script type="text/javascript">
36  
-        function logout() {
37  
-            window.location.replace("../../logout.aspx");
38  
-        }
39  
-  </script>
40  
-
41  
-
  22
+    <script src="../../js/MenuDrag.js" type="text/javascript"></script><!-- Drag and drop for menu-->
  23
+    <script src="../../js/logout.js" type="text/javascript"></script><!--Logout-->
42 24
 
43 25
 </head>
44 26
 <body>
20  AdminPages/Manager/UpdateUser.aspx
@@ -17,24 +17,8 @@
17 17
     <script src="../../SplitViewJS/iscroll.js" type="text/javascript"></script>
18 18
     <script src="../../SplitViewJS/jqm.page.params.js" type="text/javascript"></script>
19 19
 
20  
-      <script type="text/javascript">
21  
-
22  
-  $(document).bind('pageinit', function() {
23  
-    $( "#menuList" ).sortable();
24  
-    $( "#menuList" ).disableSelection();
25  
-    <!-- Refresh list to the end of sort to have a correct display -->
26  
-    $( "#menuList" ).bind( "sortstop", function(event, ui) {
27  
-      $('#menuList').listview('refresh');
28  
-    });
29  
-  });
30  
-  </script>
31  
-
32  
-
33  
-    <script type="text/javascript">
34  
-        function logout() {
35  
-            window.location.replace("../../logout.aspx");
36  
-        }
37  
-    </script>
  20
+    <script src="../../js/MenuDrag.js" type="text/javascript"></script><!-- Drag and drop for menu-->
  21
+    <script src="../../js/logout.js" type="text/javascript"></script><!--Logout-->
38 22
 
39 23
 </head>
40 24
 <body>
56  AdminPages/Supervisor/AddStep.aspx
@@ -8,7 +8,8 @@
8 8
     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
9 9
     <link href="../../SplitViewStyle/jquery.mobile.splitview.css" rel="stylesheet" type="text/css" />
10 10
     <link href="../../SplitViewStyle/jquery.mobile.grids.collapsible.css" rel="stylesheet" type="text/css" />
11  
- 	
  11
+ 	<link href="../../StyleSheets/Style.css" rel="stylesheet" type="text/css" />
  12
+
12 13
     <script src="../../SplitViewJS/jquery-1.7.1.js" type="text/javascript"></script>
13 14
 	<script src="http://code.jquery.com/ui/1.8.21/jquery-ui.min.js" type="text/javascript"></script>   
14 15
     <script src="../../SplitViewJS/jquery.mobile.splitview.js" type="text/javascript"></script>
@@ -18,52 +19,9 @@
18 19
     <script src="../../SplitViewJS/jqm.page.params.js" type="text/javascript"></script>
19 20
     <script src="../../jquery.ui.touch-punch.min.js" type="text/javascript"></script>
20 21
 
21  
-
22  
-
23  
-    <style type="text/css">
24  
-    .font{
25  
-        font-size: 16px;
26  
-    }
27  
-    .align{
28  
- 
29  
-        font-size: 16px;
30  
-    }
31  
-    .alignPic{
32  
-
33  
-        font-size: 16px;
34  
-    }
35  
-    .alignCata{
36  
-
37  
-    }
38  
-        
39  
-    </style>
40  
-  <script type="text/javascript">
41  
-      $(document).bind('pageinit', function() {
42  
-        $( "#menuList" ).sortable();
43  
-        $( "#menuList" ).disableSelection();
44  
-        <!-- Refresh list to the end of sort to have a correct display -->
45  
-        $( "#menuList" ).bind( "sortstop", function(event, ui) {
46  
-          $('#menuList').listview('refresh');
47  
-        });
48  
-      });
49  
-  </script>
50  
-  <script type="text/javascript">
51  
-      $(document).bind('pageinit', function() {
52  
-        $( "#stepList" ).sortable();
53  
-        $( "#stepList" ).disableSelection();
54  
-        <!-- Refresh list to the end of sort to have a correct display -->
55  
-        $( "#stepList" ).bind( "sortstop", function(event, ui) {
56  
-          $('#stepList').listview('refresh');
57  
-        });
58  
-      });
59  
-  </script>
60  
-
61  
-  <script type="text/javascript">
62  
-      function logout() {
63  
-          window.location.replace("../../logout.aspx");
64  
-      }
65  
-  </script>
66  
-
  22
+    <script src="../../js/MenuDrag.js" type="text/javascript"></script><!-- Drag and drop for menu-->
  23
+    <script src="../../js/SortSteps.js" type="text/javascript"></script><!-- Drag and drop for steps-->
  24
+    <script src="../../js/logout.js" type="text/javascript"></script><!--logout-->
67 25
 </head>
68 26
 <body>
69 27
     
@@ -126,8 +84,8 @@
126 84
     <div data-role="panel" data-theme="b" data-id="main" ><!-- START OF RIGHT PANEL -->
127 85
        
128 86
 	    <div data-role="page" id="newTask"><!-- START OF NEW TASK PAGE -->	
129  
-			<div data-role="header" data-theme="b">
130  
-				<h1>Add Main Step</h1>
  87
+			<div runat = "server" id = "Tasklabel" data-role="header" data-theme="b">
  88
+				<h1 runat = "server" id = "header" ></h1>
131 89
 			</div>
132 90
 
133 91
 			<div data-role="content" data-theme="b" id="mainContent">
22  AdminPages/Supervisor/AddStep.aspx.cs
@@ -4,6 +4,10 @@
4 4
 using System.Web;
5 5
 using System.Web.UI;
6 6
 using System.Web.UI.WebControls;
  7
+using System.Configuration;
  8
+using System.Data.SqlClient;
  9
+using System.Data.Sql;
  10
+using System.Data;
7 11
 using System.IO;
8 12
 
9 13
 public partial class AdminPages_AddStep : System.Web.UI.Page
@@ -12,8 +16,26 @@ public partial class AdminPages_AddStep : System.Web.UI.Page
12 16
 
13 17
     protected void Page_Load(object sender, EventArgs e)
14 18
     {
  19
+        String name;
15 20
         taskID = Convert.ToInt16(Request.QueryString["TaskID"]);
16 21
 
  22
+        String connectionString = ConfigurationManager.AppSettings["ConnectionString"];
  23
+        SqlDataReader reader;
  24
+        SqlConnection sqlConnect = new SqlConnection(connectionString);
  25
+        SqlCommand cmd = new SqlCommand();
  26
+        cmd.Connection = sqlConnect;
  27
+        cmd.CommandText = "retrieve_alltaskinfo";
  28
+        cmd.CommandType = CommandType.StoredProcedure;
  29
+        cmd.Parameters.Add("@taskid", SqlDbType.Int).Value = taskID;
  30
+        sqlConnect.Open();
  31
+        cmd.ExecuteNonQuery();
  32
+        reader = cmd.ExecuteReader();
  33
+        while (reader.Read())
  34
+        {
  35
+            name = reader["TaskName"].ToString();
  36
+            header.InnerText = " Add Main Step for Task - " + name;
  37
+        }
  38
+
17 39
         if ((Session["status"] == null || Session["status"] == "admin" || Session["status"] == "user"))
18 40
         {
19 41
             Response.Redirect("~/Default.aspx");
24  AdminPages/Supervisor/CreateTask.aspx
@@ -8,7 +8,8 @@
8 8
     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
9 9
     <link href="../../SplitViewStyle/jquery.mobile.splitview.css" rel="stylesheet" type="text/css" />
10 10
     <link href="../../SplitViewStyle/jquery.mobile.grids.collapsible.css" rel="stylesheet" type="text/css" />
11  
- 	
  11
+ 	<link href="../../StyleSheets/Style.css" rel="stylesheet" type="text/css" />
  12
+
12 13
     <script src="../../SplitViewJS/jquery-1.7.1.js" type="text/javascript"></script>
13 14
 	<script src="http://code.jquery.com/ui/1.8.21/jquery-ui.min.js" type="text/javascript"></script>   
14 15
     <script src="../../SplitViewJS/jquery.mobile.splitview.js" type="text/javascript"></script>
@@ -17,24 +18,9 @@
17 18
     <script src="../../SplitViewJS/iscroll.js" type="text/javascript"></script>
18 19
     <script src="../../SplitViewJS/jqm.page.params.js" type="text/javascript"></script>
19 20
     <script src="../../jquery.ui.touch-punch.min.js" type="text/javascript"></script>
20  
- 
21  
-
22  
-    <script type="text/javascript">
23  
-      $(document).bind('pageinit', function() {
24  
-        $( "#menuList" ).sortable();
25  
-        $( "#menuList" ).disableSelection();
26  
-        <!-- Refresh list to the end of sort to have a correct display -->
27  
-        $( "#menuList" ).bind( "sortstop", function(event, ui) {
28  
-          $('#menuList').listview('refresh');
29  
-        });
30  
-      });
31  
-   </script>
32  
-
33  
-  <script type="text/javascript">
34  
-      function logout() {
35  
-          window.location.replace("../../logout.aspx");
36  
-      }
37  
-  </script>
  21
+
  22
+    <script src="../../js/MenuDrag.js" type="text/javascript"></script><!-- Drag and drop for menu-->
  23
+    <script src="../../js/logout.js" type="text/javascript"></script><!--logout-->
38 24
 
39 25
 </head>
40 26
 <body>
15  AdminPages/Supervisor/EditMainStep.aspx
@@ -9,8 +9,10 @@
9 9
     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
10 10
     <link href="../../SplitViewStyle/jquery.mobile.splitview.css" rel="stylesheet" type="text/css" />
11 11
     <link href="../../SplitViewStyle/jquery.mobile.grids.collapsible.css" rel="stylesheet" type="text/css" />
12  
- 
  12
+    <link href="../../StyleSheets/Style.css" rel="stylesheet" type="text/css" />
  13
+
13 14
     <script src="../../SplitViewJS/jquery-1.7.1.js" type="text/javascript"></script>
  15
+    <script src="http://code.jquery.com/ui/1.8.21/jquery-ui.min.js" type="text/javascript"></script> 
14 16
     <script src="../../SplitViewJS/jquery.mobile.splitview.js" type="text/javascript"></script>
15 17
     <script src="../../SplitViewJS/jquery.mobile.js" type="text/javascript"></script>
16 18
     <script src="../../SplitViewJS/iscroll-wrapper.js" type="text/javascript"></script>
@@ -18,13 +20,10 @@
18 20
     <script src="../../SplitViewJS/jqm.page.params.js" type="text/javascript"></script>
19 21
 
20 22
 
21  
-    <script src="../../js/PopulateEditMainStep.js" type="text/javascript"></script>
22  
-
23  
-    <script type="text/javascript">
24  
-        function logout() {
25  
-            window.location.replace("../../logout.aspx");
26  
-        }
27  
-    </script>
  23
+    <script src="../../js/PopulateEditMainStep.js" type="text/javascript"></script><!-- Populate page data -->
  24
+    <script src="../../js/MenuDrag.js" type="text/javascript"></script><!-- Drag and drop for menu-->
  25
+    <script src="../../js/SortSteps.js" type="text/javascript"></script><!-- Drag and drop for steps-->
  26
+    <script src="../../js/logout.js" type="text/javascript"></script><!--logout-->
28 27
 
29 28
 </head>
30 29
 <body>
37  AdminPages/Supervisor/EditTask.aspx
@@ -8,7 +8,8 @@
8 8
     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
9 9
     <link href="../../SplitViewStyle/jquery.mobile.splitview.css" rel="stylesheet" type="text/css" />
10 10
     <link href="../../SplitViewStyle/jquery.mobile.grids.collapsible.css" rel="stylesheet" type="text/css" />
11  
- 	
  11
+ 	<link href="../../StyleSheets/Style.css" rel="stylesheet" type="text/css" />
  12
+
12 13
     <script src="../../SplitViewJS/jquery-1.7.1.js" type="text/javascript"></script>
13 14
 	<script src="http://code.jquery.com/ui/1.8.21/jquery-ui.min.js" type="text/javascript"></script>   
14 15
     <script src="../../SplitViewJS/jquery.mobile.splitview.js" type="text/javascript"></script>
@@ -18,39 +19,11 @@
18 19
     <script src="../../SplitViewJS/jqm.page.params.js" type="text/javascript"></script>
19 20
     <script src="../../jquery.ui.touch-punch.min.js" type="text/javascript"></script>
20 21
     
21  
-    <!-- Yeah yo scripts -->
22 22
     <script src="../../js/GetTaskInfo.js" type="text/javascript"></script>
23 23
     <script src="../../js/GetMainStepInfo.js" type="text/javascript"></script>
24  
-
25  
-
26  
-  <script type="text/javascript">
27  
-  $(document).bind('pageinit', function() {
28  
-   
29  
-    $( "#menuList" ).sortable();
30  
-    $( "#menuList" ).disableSelection();
31  
-    <!-- Refresh list to the end of sort to have a correct display -->
32  
-    $( "#menuList" ).bind( "sortstop", function(event, ui) {
33  
-      $('#menuList').listview('refresh');
34  
-    });
35  
-  });
36  
-  </script>
37  
-
38  
-  <script type="text/javascript">
39  
-      $(document).bind('pageinit', function() {
40  
-        $( "#stepList" ).sortable();
41  
-        $( "#stepList" ).disableSelection();
42  
-        <!-- Refresh list to the end of sort to have a correct display -->
43  
-        $( "#stepList" ).bind( "sortstop", function(event, ui) {
44  
-          $('#stepList').listview('refresh');
45  
-        });
46  
-      });
47  
-  </script>
48  
-
49  
-  <script type="text/javascript">
50  
-      function logout() {
51  
-          window.location.replace("../../logout.aspx");
52  
-      }
53  
-  </script>
  24
+    <script src="../../js/MenuDrag.js" type="text/javascript"></script><!-- Drag and drop for menu-->
  25
+    <script src="../../js/SortSteps.js" type="text/javascript"></script><!-- Drag and drop for steps-->
  26
+    <script src="../../js/logout.js" type="text/javascript"></script><!--logout-->
54 27
 </head>
55 28
 
56 29
 <body>
40  AdminPages/Supervisor/Supervisor.aspx
@@ -9,7 +9,8 @@
9 9
     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
10 10
     <link href="../../SplitViewStyle/jquery.mobile.splitview.css" rel="stylesheet" type="text/css" />
11 11
     <link href="../../SplitViewStyle/jquery.mobile.grids.collapsible.css" rel="stylesheet" type="text/css" />
12  
- 	
  12
+ 	<link href="../../StyleSheets/Style.css" rel="stylesheet" type="text/css" />
  13
+
13 14
     <script src="../../SplitViewJS/jquery-1.7.1.js" type="text/javascript"></script>
14 15
 	<script src="http://code.jquery.com/ui/1.8.21/jquery-ui.min.js" type="text/javascript"></script>   
15 16
     <script src="../../SplitViewJS/jquery.mobile.splitview.js" type="text/javascript"></script>
@@ -19,41 +20,8 @@
19 20
     <script src="../../SplitViewJS/jqm.page.params.js" type="text/javascript"></script>
20 21
     <script src="../../jquery.ui.touch-punch.min.js" type="text/javascript"></script>
21 22
 
22  
-    <style type="text/css">
23  
-    .font{
24  
-        font-size: 16px;
25  
-    }
26  
-    .align{
27  
-        margin-left: 157px;
28  
-        font-size: 16px;
29  
-    }
30  
-    .alignPic{
31  
-        margin-left: 150px;
32  
-        font-size: 16px;
33  
-    }
34  
-    .alignCata{
35  
-        margin-left: 200px;
36  
-    }
37  
-        
38  
-    </style>
39  
-
40  
-    <script type="text/javascript">
41  
-        $(document).bind('pageinit', function() {
42  
-        $( "#menuList" ).sortable();
43  
-        $( "#menuList" ).disableSelection();
44  
-        <!-- Refresh list to the end of sort to have a correct display -->
45  
-        $( "#menuList" ).bind( "sortstop", function(event, ui) {
46  
-            $('#menuList').listview('refresh');
47  
-        });
48  
-        });
49  
-    </script>
50  
-
51  
-    <script type="text/javascript">
52  
-        function logout() {
53  
-            window.location.replace("../../logout.aspx");
54  
-        }
55  
-    </script>
56  
-
  23
+    <script src="../../js/MenuDrag.js" type="text/javascript"></script><!-- Drag and drop for menu-->
  24
+    <script src="../../js/logout.js" type="text/javascript"></script><!--logout-->
57 25
 </head>
58 26
 <body>
59 27
     
10  js/MenuDrag.js
... ...
@@ -0,0 +1,10 @@
  1
+ /*Menu List sort*/
  2
+  $(document).bind('pageinit', function() {
  3
+   
  4
+    $( "#menuList" ).sortable();
  5
+    $( "#menuList" ).disableSelection();
  6
+    <!-- Refresh list to the end of sort to have a correct display -->
  7
+    $( "#menuList" ).bind( "sortstop", function(event, ui) {
  8
+      $('#menuList').listview('refresh');
  9
+    });
  10
+  });
9  js/SortSteps.js
... ...
@@ -0,0 +1,9 @@
  1
+ /*Steps Sort*/
  2
+  $(document).bind('pageinit', function() {
  3
+        $( "#stepList" ).sortable();
  4
+        $( "#stepList" ).disableSelection();
  5
+        <!-- Refresh list to the end of sort to have a correct display -->
  6
+        $( "#stepList" ).bind( "sortstop", function(event, ui) {
  7
+          $('#stepList').listview('refresh');
  8
+        });
  9
+      });
4  js/logout.js
... ...
@@ -0,0 +1,4 @@
  1
+/*LOGOUT*/
  2
+function logout() {
  3
+    window.location.replace("../../logout.aspx");
  4
+}

No commit comments for this range

Something went wrong with that request. Please try again.