Conference Controls: Update class, misc on details and detail edit.

This commit is contained in:
Nate
2020-01-15 11:25:18 -07:00
parent e51ee969a0
commit 26047fe759
3 changed files with 10 additions and 5 deletions

View File

@@ -132,6 +132,7 @@
$token = $object->create($_SERVER['PHP_SELF']);
//show the header
$document['title'] = $text['title-conference_control_detail'];
require_once "resources/header.php";
//show the content
@@ -141,7 +142,7 @@
echo " <div class='heading'><b>".$text['title-conference_control_detail']."</b></div>\n";
echo " <div class='actions'>\n";
echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'collapse'=>'hide-xs','style'=>'margin-right: 15px;','link'=>'conference_control_edit.php?id='.urlencode($conference_control_uuid)]);
echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>'hide-xs','name'=>'action','value'=>'save']);
echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>'hide-xs']);
echo " </div>\n";
echo " <div style='clear: both;'></div>\n";
echo "</div>\n";

View File

@@ -160,7 +160,7 @@
if (is_array($result) && @sizeof($result) != 0) {
$x = 0;
foreach($result as $row) {
foreach ($result as $row) {
if (permission_exists('conference_control_detail_edit')) {
$list_row_url = 'conference_control_detail_edit.php?conference_control_uuid='.urlencode($row['conference_control_uuid']).'&id='.urlencode($row['conference_control_detail_uuid']);
}

View File

@@ -55,11 +55,9 @@ if (!class_exists('conference_controls')) {
* called when the object is created
*/
public function __construct() {
//assign the variables
$this->app_name = 'conference_controls';
$this->app_uuid = 'e1ad84a2-79e1-450c-a5b1-7507a043e048';
}
/**
@@ -198,7 +196,6 @@ if (!class_exists('conference_controls')) {
$this->table = 'conference_controls';
$this->toggle_field = 'control_enabled';
$this->toggle_values = ['true','false'];
$this->description_field = 'control_description';
$this->location = 'conference_controls.php';
if (permission_exists($this->name.'_edit')) {
@@ -343,6 +340,13 @@ if (!class_exists('conference_controls')) {
* copy rows from the database
*/
public function copy($records) {
//assign the variables
$this->name = 'conference_control';
$this->table = 'conference_controls';
$this->description_field = 'control_description';
$this->location = 'conference_controls.php';
if (permission_exists($this->name.'_add')) {
//add multi-lingual support