1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
2 | <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head> |
---|
3 | |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
5 | <title>Learners Licence SA</title> |
---|
6 | |
---|
7 | |
---|
8 | <script type="text/javascript" src="http://localhost/scripts/jquery/jquery-1.4.2.min.js"></script> |
---|
9 | <script type="text/javascript" src="http://localhost/scripts/ckeditor/ckeditor.js"></script> |
---|
10 | |
---|
11 | |
---|
12 | <script type="text/javascript" > |
---|
13 | |
---|
14 | |
---|
15 | $(function(){ |
---|
16 | |
---|
17 | |
---|
18 | //ADMIN EDITOR |
---|
19 | |
---|
20 | var editor,options,globNode; |
---|
21 | var editorInstance=function(node){ |
---|
22 | |
---|
23 | |
---|
24 | if(globNode)globNode.remove(); |
---|
25 | if(!node){ |
---|
26 | |
---|
27 | globNode=$('<div class="box"><div class="box_title" ></div><div class="box_content" ></div></div>').prependTo('.fluid_column_left_container'); |
---|
28 | node=globNode[0]; |
---|
29 | |
---|
30 | } |
---|
31 | |
---|
32 | var content=$(node).find('.box_content'); |
---|
33 | if(options)options.remove(); |
---|
34 | |
---|
35 | var saveButton=$('<input type="button" value="Save" />').click(function(){ |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | }); |
---|
40 | var cancelButton=$('<input type="button" value="Cancel" />').click(function(){ |
---|
41 | |
---|
42 | /*for(var i in editor){ |
---|
43 | |
---|
44 | if(typeof editor[i]=='function')alert(i+':'+editor[i]); |
---|
45 | |
---|
46 | }*/ |
---|
47 | options.remove(); |
---|
48 | |
---|
49 | editor.destroy(); |
---|
50 | }); |
---|
51 | var deleteButton=$('<input type="button" value="Delete" />').click(function(){ |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | }); |
---|
56 | |
---|
57 | options=$('<div></div>').appendTo(node).append(saveButton).append(cancelButton).append(deleteButton); |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | if(editor)editor.destroy(); |
---|
63 | editor = CKEDITOR.replace( content[0],{ |
---|
64 | 'toolbar':'MyToolbar', |
---|
65 | 'uiColor':'transparent', |
---|
66 | 'uiResizable':false, |
---|
67 | 'width':content.width()-2+'px', |
---|
68 | 'height':'400px', |
---|
69 | 'removePlugins': 'elementspath', |
---|
70 | filebrowserBrowseUrl : '/browser/browse/type/all', |
---|
71 | filebrowserUploadUrl : '/browser/upload/type/all', |
---|
72 | filebrowserImageBrowseUrl : '/browser/browse/type/image', |
---|
73 | filebrowserImageUploadUrl : '/browser/upload/type/image', |
---|
74 | filebrowserWindowWidth : 800, |
---|
75 | filebrowserWindowHeight : 500, |
---|
76 | toolbarStartupExpanded : false |
---|
77 | }); |
---|
78 | |
---|
79 | |
---|
80 | }; |
---|
81 | |
---|
82 | $('.box .box_title,.box_half .box_title').append('<input type="button" style="float:right;" value="Edit" class="box_edit" />'); |
---|
83 | |
---|
84 | var newArticle=$('<input type="button" value="New Article" />').click(function(){editorInstance();}).appendTo('#editOptions'); |
---|
85 | $('body').delegate('.box_edit','click',function(e){editorInstance(this.parentNode.parentNode); }); |
---|
86 | |
---|
87 | |
---|
88 | }); |
---|
89 | |
---|
90 | |
---|
91 | </script> |
---|
92 | </head> |
---|
93 | <body> |
---|
94 | |
---|
95 | <div id="page-wrap"> |
---|
96 | |
---|
97 | <div class="column_wrap_fix"> |
---|
98 | |
---|
99 | <div class="navigation_layout_background_hack" ></div> |
---|
100 | <div class="column_layout_container"> |
---|
101 | |
---|
102 | <div style="background:#183854;height:30px;width:99.9%;margin-bottom:2px;"></div> |
---|
103 | <div id="editOptions" style="background:transparent;height:30px;width:99.9%;margin-bottom:2px;"></div> |
---|
104 | |
---|
105 | |
---|
106 | |
---|
107 | |
---|
108 | |
---|
109 | <div class="fluid_column_left" style="" ><div style="" class="fluid_column_left_position"><div class="fluid_column_left_container"> |
---|
110 | |
---|
111 | |
---|
112 | <div class="box" id="box_1" ><div class="box_title">Welcome to Learners Licence SA</div><div class="box_content"><H1>Learners Licence SA <BR></H1> |
---|
113 | <P style="FONT-WEIGHT: bold">is an accredited Learners Licence website assisting you in completing your Department of Transport Learners Licence test successfully first time.</P> |
---|
114 | <P><BR style="FONT-WEIGHT: bold"><SPAN style="FONT-WEIGHT: bold">Learners Licence SA provides all the relevant study material for your Learners Licence Test, available to read online or to download as pdf samples.</SPAN></P> |
---|
115 | <P><BR style="FONT-WEIGHT: bold"><SPAN style="FONT-WEIGHT: bold">The online testing facility is brilliant way to practice for your tests. Registered members can choose from a variety of tests depending on what licence they intend to study for. The test will be timed and marked just like the real test, once completed comprehensive results will be supplied to aid the user.</SPAN></P> |
---|
116 | <P><BR style="FONT-WEIGHT: bold"><SPAN style="FONT-WEIGHT: bold">The testing facility is also available as standalone software for those interested in becoming franchisees.....Schools can subscribe as a group to allow their students oppurtunity....</SPAN></P> |
---|
117 | <H1>dsfdsfsdfdsf<BR><SPAN style="FONT-WEIGHT: bold"></SPAN></H1> |
---|
118 | <P><SPAN style="FONT-WEIGHT: bold">dsfsdfdsafdsafsdfhjhjkhj<BR></SPAN></P> |
---|
119 | <H3><BR style="FONT-WEIGHT: bold"></H3><BR></div></div><div class="box" id="box_11" ><div class="box_title">MY new ArTiCle</div><div class="box_content"><p>adsfdsf</p><p>ds</p><p>dsf</p><p>ds</p><p>f</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p>dsfsdf</p><p>fdgdfgd</p><p><br></p></div></div><div class="box" id="box_6" ><div class="box_title">Registered members can choose </div><div class="box_content">The online testing facility is brilliant way to practice for your tests. Registered members can choose from a variety of tests depending on what licence they intend to study for. The test will be timed and marked just like the real test, once completed comprehensive results will be supplied to aid the user.</div></div> |
---|
120 | </div></div></div> |
---|
121 | |
---|
122 | |
---|
123 | <div class="fixed_column_right"><div class="fixed_column_right_container"> |
---|
124 | |
---|
125 | <div class="info_box"> |
---|
126 | <p class="box_title">Members Login</p> |
---|
127 | <p class="box_content" style="font-weight:bold;font-size:14px;color:#2E530A;padding:10px;"> |
---|
128 | <span>Username: </span><input type="text" id="eml" value="" /><br/> |
---|
129 | <span>Password: </span><input type="password" id="pass" value="" /> |
---|
130 | <div id="login_button" onclick="dw3554b5d74eb6193cac659ad3ebadc375a113e31b();"></div> |
---|
131 | </p> |
---|
132 | |
---|
133 | </div> |
---|
134 | </div></div> |
---|
135 | |
---|
136 | <div style="background:red;height:30px;width:99.9%;float:left;"></div> |
---|
137 | </div> |
---|
138 | |
---|
139 | <div class="footer"></div> |
---|
140 | |
---|
141 | |
---|
142 | |
---|
143 | |
---|
144 | </div> |
---|
145 | </div> |
---|
146 | |
---|
147 | </body></html> |
---|