From 84edaebec26add0e2deb3868b419701f124bc8b4 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 19 Feb 2010 09:28:21 +0000 Subject: [PATCH] added missing site editing pages --- codepot/src/codepot/views/site_delete.php | 70 +++++++++++++++ codepot/src/codepot/views/site_edit.php | 100 ++++++++++++++++++++++ 2 files changed, 170 insertions(+) create mode 100644 codepot/src/codepot/views/site_delete.php create mode 100644 codepot/src/codepot/views/site_edit.php diff --git a/codepot/src/codepot/views/site_delete.php b/codepot/src/codepot/views/site_delete.php new file mode 100644 index 00000000..b5f74d0e --- /dev/null +++ b/codepot/src/codepot/views/site_delete.php @@ -0,0 +1,70 @@ + + + + + + +<?=htmlspecialchars($site->name)?> + + + + +
+ + + +load->view ('taskbar'); ?> + + +load->view ( + 'projectbar', + array ( + 'site' => NULL, + 'project' => NULL, + 'pageid' => 'site', + 'ctxmenuitems' => array () + ) +); +?> + + +
+ +$message
"; ?> + +id)?> + +
+
+ + lang->line('MSG_SURE_TO_DELETE_THIS')?> - name)?> + +
+
+ +
+ id))?> + name))?> +
+ +
+ lang->line('Delete'))?> +
+ + + + +
+ + + +load->view ('footer'); ?> + + + + + + + + diff --git a/codepot/src/codepot/views/site_edit.php b/codepot/src/codepot/views/site_edit.php new file mode 100644 index 00000000..fcc8525a --- /dev/null +++ b/codepot/src/codepot/views/site_edit.php @@ -0,0 +1,100 @@ + + + + + + +<?=htmlspecialchars($site->name)?> + + + + +
+ + + +load->view ('taskbar'); ?> + + + +load->view ( + 'projectbar', + array ( + 'site' => NULL, + 'project' => NULL, + 'pageid' => 'site', + 'ctxmenuitems' => array () + ) +); +?> + + +
+ +$message
"; + + $formurl = "site/{$mode}"; + if ($mode == 'update') $formurl .= '/'.$site->id; +?> + + + +
+
+ lang->line('ID').': ', 'site_id')?> + +
+
+ + + id), $extra)?> +
+
+ +
+
+ lang->line('Name').': ', 'site_name')?> + +
+
+ + name), $extra)?> +
+
+ +
+
+ lang->line('Text').': ', 'site_text')?> + +
+
+ text))?> +
+
+ +
+ lang->line('Update'): $this->lang->line('Create'); ?> + +
+ + + + +
+ + + +load->view ('footer'); ?> + + + + + + + +