From 59a70fc11463d7583d2ee9e72f3c54e8bd6a0876 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Fri, 13 May 2011 10:32:35 +0000 Subject: h-source:improved the way forms are managed --- .../Controllers/SoundcardsController.php | 4 + .../Controllers/ThreegcardsController.php | 4 + .../Controllers/VideocardsController.php | 4 + .../Application/Controllers/WifiController.php | 4 + h-source/Application/Views/Soundcards/form.php | 105 -------------------- h-source/Application/Views/Threegcards/form.php | 106 -------------------- h-source/Application/Views/Videocards/form.php | 105 -------------------- h-source/Application/Views/Wifi/form.php | 105 -------------------- h-source/Application/Views/form.php | 110 +++++++++++++++++++++ 9 files changed, 126 insertions(+), 421 deletions(-) delete mode 100644 h-source/Application/Views/Soundcards/form.php delete mode 100644 h-source/Application/Views/Threegcards/form.php delete mode 100644 h-source/Application/Views/Videocards/form.php delete mode 100644 h-source/Application/Views/Wifi/form.php create mode 100644 h-source/Application/Views/form.php diff --git a/h-source/Application/Controllers/SoundcardsController.php b/h-source/Application/Controllers/SoundcardsController.php index a45a4eb..ba04987 100644 --- a/h-source/Application/Controllers/SoundcardsController.php +++ b/h-source/Application/Controllers/SoundcardsController.php @@ -97,6 +97,10 @@ class SoundcardsController extends GenericController $this->setArgKeys($argKeys); $data['title'] = 'Soundcard'; + + $data['intefaceOptions'] = Soundcards::$interface; + $data['worksOptions'] = Soundcards::$audioSelect; + $data['worksField'] = 'sound_card_works'; $this->append($data); } diff --git a/h-source/Application/Controllers/ThreegcardsController.php b/h-source/Application/Controllers/ThreegcardsController.php index 5770fa8..2ddc108 100644 --- a/h-source/Application/Controllers/ThreegcardsController.php +++ b/h-source/Application/Controllers/ThreegcardsController.php @@ -97,6 +97,10 @@ class ThreegcardsController extends GenericController $this->setArgKeys($argKeys); $data['title'] = '3G card'; + + $data['intefaceOptions'] = Wifi::$interface; + $data['worksOptions'] = Wifi::$wifiSelect; + $data['worksField'] = 'wifi_works'; $this->append($data); } diff --git a/h-source/Application/Controllers/VideocardsController.php b/h-source/Application/Controllers/VideocardsController.php index ab869bc..08eda31 100644 --- a/h-source/Application/Controllers/VideocardsController.php +++ b/h-source/Application/Controllers/VideocardsController.php @@ -97,6 +97,10 @@ class VideocardsController extends GenericController $this->setArgKeys($argKeys); $data['title'] = 'Videocards'; + + $data['intefaceOptions'] = Videocard::$interface; + $data['worksOptions'] = Videocard::$videoSelect; + $data['worksField'] = 'video_card_works'; $this->append($data); } diff --git a/h-source/Application/Controllers/WifiController.php b/h-source/Application/Controllers/WifiController.php index c2b9e20..52a9657 100644 --- a/h-source/Application/Controllers/WifiController.php +++ b/h-source/Application/Controllers/WifiController.php @@ -97,6 +97,10 @@ class WifiController extends GenericController $this->setArgKeys($argKeys); $data['title'] = 'Wifi'; + + $data['intefaceOptions'] = Wifi::$interface; + $data['worksOptions'] = Wifi::$wifiSelect; + $data['worksField'] = 'wifi_works'; $this->append($data); } diff --git a/h-source/Application/Views/Soundcards/form.php b/h-source/Application/Views/Soundcards/form.php deleted file mode 100644 index e0d4680..0000000 --- a/h-source/Application/Views/Soundcards/form.php +++ /dev/null @@ -1,105 +0,0 @@ - - -. -?> - - - - - -
-
controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - - - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- - - - - -
- * are mandatory");?> -
- -
- -
-
\ No newline at end of file diff --git a/h-source/Application/Views/Threegcards/form.php b/h-source/Application/Views/Threegcards/form.php deleted file mode 100644 index 5928cea..0000000 --- a/h-source/Application/Views/Threegcards/form.php +++ /dev/null @@ -1,106 +0,0 @@ - - -. -?> - - - - - -
-
controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - - - -
- -
- - -
- -
- - -
- -
- - -
- -
- -
- -
- - - - - -
- * are mandatory");?> -
- -
- -
-
\ No newline at end of file diff --git a/h-source/Application/Views/Videocards/form.php b/h-source/Application/Views/Videocards/form.php deleted file mode 100644 index bf0b1a4..0000000 --- a/h-source/Application/Views/Videocards/form.php +++ /dev/null @@ -1,105 +0,0 @@ - - -. -?> - - - - - -
-
controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - - - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- - - - - -
- * are mandatory");?> -
- -
- -
-
\ No newline at end of file diff --git a/h-source/Application/Views/Wifi/form.php b/h-source/Application/Views/Wifi/form.php deleted file mode 100644 index c2adc23..0000000 --- a/h-source/Application/Views/Wifi/form.php +++ /dev/null @@ -1,105 +0,0 @@ - - -. -?> - - - - - -
-
controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - - - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- - - - - -
- * are mandatory");?> -
- -
- -
-
\ No newline at end of file diff --git a/h-source/Application/Views/form.php b/h-source/Application/Views/form.php new file mode 100644 index 0000000..c6f532c --- /dev/null +++ b/h-source/Application/Views/form.php @@ -0,0 +1,110 @@ + + +. +?> + + + + + +
+
controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ +
+ + + + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + controller,'threegcards') === 0 ) { ?> + +
+ + +
+ + + + + +
+ * are mandatory");?> +
+ +
+ +
+
\ No newline at end of file -- cgit v1.2.3