From 07ddbb0f4c76253b1d888ceab555bdf26992fd01 Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 29 Sep 2016 12:45:06 +0200 Subject: make short variable names longer --- includes/helper/graph_helper.php | 6 +++--- includes/model/AngelType_model.php | 6 +++--- includes/model/Message_model.php | 16 ++++++++-------- includes/model/Room_model.php | 6 +++--- includes/model/Shifts_model.php | 14 +++++++------- includes/model/User_model.php | 12 ++++++------ includes/pages/admin_active.php | 24 ++++++++++++------------ includes/pages/admin_arrive.php | 12 ++++++------ includes/pages/admin_groups.php | 26 +++++++++++++------------- includes/pages/admin_news.php | 12 ++++++------ includes/pages/admin_questions.php | 12 ++++++------ includes/pages/admin_rooms.php | 22 +++++++++++----------- includes/pages/admin_user.php | 34 +++++++++++++++++----------------- includes/pages/user_messages.php | 12 ++++++------ includes/pages/user_myshifts.php | 18 +++++++++--------- includes/pages/user_questions.php | 6 +++--- includes/sys_template.php | 30 +++++++++++++++--------------- 17 files changed, 134 insertions(+), 134 deletions(-) (limited to 'includes') diff --git a/includes/helper/graph_helper.php b/includes/helper/graph_helper.php index 180d1ef9..42a6c07a 100644 --- a/includes/helper/graph_helper.php +++ b/includes/helper/graph_helper.php @@ -7,7 +7,7 @@ * @param unknown $colors colors for the data rows * @param unknown $data the data */ -function bargraph($id, $key, $row_names, $colors, $data) { +function bargraph($dom_id, $key, $row_names, $colors, $data) { $labels = []; foreach ($data as $dataset) { $labels[] = $dataset[$key]; @@ -26,10 +26,10 @@ function bargraph($id, $key, $row_names, $colors, $data) { ]; } - return ' + return ' - ', $id); + ', $dom_id); } /** @@ -208,14 +208,14 @@ function form_multi_checkboxes($names, $label, $items, $selected, $disabled = ar foreach ($items as $key => $item) { $html .= ""; foreach ($names as $name => $title) { - $id = $name . '_' . $key; + $dom_id = $name . '_' . $key; $sel = array_search($key, $selected[$name]) !== false ? ' checked="checked"' : ""; if (! empty($disabled) && ! empty($disabled[$name]) && array_search($key, $disabled[$name]) !== false) { $sel .= ' disabled="disabled"'; } - $html .= ''; + $html .= ''; } - $html .= ''; + $html .= ''; } $html .= ""; return form_element($label, $html); @@ -452,8 +452,8 @@ function html_options($name, $options, $selected = "") { return $html; } -function html_select_key($id, $name, $rows, $selected) { - $html = ''; foreach ($rows as $key => $row) { if (($key == $selected) || ($row == $selected)) { $html .= ''; -- cgit v1.2.3-70-g09d2