Changeset 395
- Timestamp:
- 04/14/08 10:20:01 (9 months ago)
- Location:
- trunk/app
- Files:
-
- 6 modified
-
config/sql/karamelo_postgres.sql (modified) (2 diffs)
-
views/ecourses/admin_vclassrooms.ctp (modified) (1 diff)
-
views/elements/admin_menu.ctp (modified) (1 diff)
-
views/entries/admin_start.ctp (modified) (1 diff)
-
views/forums/admin_add.ctp (modified) (2 diffs)
-
views/vclassrooms/admin_listing.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/karamelo_postgres.sql
r386 r395 318 318 "created" timestamp(0) with time zone DEFAULT now() NOT NULL, 319 319 "status" smallint DEFAULT 0 NOT NULL, 320 "user_id" int egerNOT NULL REFERENCES users(id) ON DELETE CASCADE,321 "ecourse_id" int egerNOT NULL REFERENCES ecourses(id) ON DELETE CASCADE,322 "secret" varchar(6), -- secret ocode to allow students register by themselves323 "access" smallint NOT NULL DEFAULT 0 320 "user_id" int NOT NULL REFERENCES users(id) ON DELETE CASCADE, 321 "ecourse_id" int NOT NULL REFERENCES ecourses(id) ON DELETE CASCADE, 322 "secret" varchar(6), -- secret code to allow students register by themselves 323 "access" smallint NOT NULL DEFAULT 0 -- public / only with code 324 324 ); 325 325 … … 569 569 CREATE TABLE "tests_vclassrooms" ( 570 570 "id" serial PRIMARY KEY, 571 "test_id" int NOT NULL REFERENCES tests(id) ,572 "vclassroom_id" int NOT NULL REFERENCES vclassrooms(id) ,571 "test_id" int NOT NULL REFERENCES tests(id) ON DELETE CASCADE, 572 "vclassroom_id" int NOT NULL REFERENCES vclassrooms(id) ON DELETE CASCADE, 573 573 UNIQUE ("test_id", "vclassroom_id") 574 574 ); -
trunk/app/views/ecourses/admin_vclassrooms.ctp
r365 r395 6 6 echo $html->getCrumbs(' / '); 7 7 8 $str = ' Virtual clasrooms on ' . $data['Ecourse']['title'] . ' e-Course';8 $str = 'Classrooms on ' . $data['Ecourse']['title']; 9 9 10 10 if ( isset( $historic ) ) -
trunk/app/views/elements/admin_menu.ctp
r352 r395 8 8 $html->link('eCourses', '/admin/ecourses/listing') => array( 9 9 $html->link('Add eCourses', '/admin/ecourses/add'), 10 $html->link('Classrooms', '/admin/vclassrooms/listing') 10 $html->link('Classrooms', '/admin/vclassrooms/listing'), 11 $html->link('Forums', '/admin/catforums/listing') 11 12 ), 12 13 $html->link('Webquests', '/admin/webquests/listing'), -
trunk/app/views/entries/admin_start.ctp
r322 r395 49 49 <?php echo $html->link($html->image('static/forums.png', array("title"=>"Forums", "alt"=>"Forums")), '/admin/catforums/listing', null, null, false); ?> 50 50 </span> 51 <a href="/admin/ca forums/listing" title="Phorums" class="main-item-caption">Forums</a>51 <a href="/admin/catforums/listing" title="Phorums" class="main-item-caption">Forums</a> 52 52 </div> 53 53 -
trunk/app/views/forums/admin_add.ctp
r393 r395 6 6 echo $html->div('title_section', 'Add New Forum'); 7 7 8 if ( $vclassrooms == null) 9 { 8 if ( $vclassrooms == null): 10 9 echo $html->para(null, $html->link('You need to have at last one classroom enabled to add new forums', '/admin/ecourses/listing')); 11 } 12 else 13 { 10 else: 11 14 12 echo $form->create('Forum'); 15 13 echo $form->hidden('Forum.catforum_id', array('value'=>$catforum_id)); … … 18 16 <legend><?php __('New Forum'); ?></legend> 19 17 <?php 20 echo $form->label('Forum.vclassroom_id', 'Class:');18 echo $form->label('Forum.vclassroom_id', 'Class:'); 21 19 echo $form->select('Forum.vclassroom_id', $vclassrooms, null, null, false); 22 20 echo $form->input('Forum.title', array("size" => 40, "maxlength" => 60)); 23 21 echo $form->error('Forum.title', 'A forum title is required.'); 22 23 echo $html->div('required', $form->label('Forum.description','Description:').$form->textarea('Forum.description', array('rows'=>10,'cols'=>50))); 24 25 echo $form->label('Forum.status', 'Activate forum:') . $form->checkbox('Forum.status', array("value"=>1)); 26 27 echo '</fieldset>'; 28 29 echo $form->end('Save'); 30 31 endif; 24 32 ?> 25 <p>26 <?php27 echo $form->label('Forum.description', 'Description:' ) . '<br />';28 echo $form->textarea('Forum.description', array("rows" => 10, "cols" => 50));29 echo $form->error('Forum.description', 'A phorum description is required.');30 ?>31 </p>32 <br />33 <?php echo $form->label('Forum.status', 'Activate forum:') . $form->checkbox('Forum.status', array("value"=>1)); ?><br />34 <p><br /></fieldset>35 <?php echo $form->end('Save');36 }37 ?></p> -
trunk/app/views/vclassrooms/admin_listing.ctp
r352 r395 3 3 echo $html->getCrumbs(' / '); 4 4 echo $html->div('title_section', 'Classrooms'); 5 echo $html->link($html->image('actions/new.png', array("alt"=>"Add classroom", "title"=>"Add classroom")), '/admin/vclassrooms/add', null, null, false); 5 6 echo $html->link($html->image('actions/new.png', array("alt"=>"Add classroom", "title"=>"Add classroom")), '/admin/ecourses/listing', null, null, false); 6 7 ?> 7 8
