Example #1
0
function globalizeGet()
{
    global $_GET;
    if ($_GET) {
        globalizeArray($_GET);
    }
}
Example #2
0
     $in2Action = 'edit';
     $frmAction = 'edit';
     goToURL($actScript . "?recordId=" . $_REQUEST['se_id'] . "&in2Action=editRecord&frmAction=edit{$error}");
 case 'editRecord':
     if ($recordId) {
         $id = $recordId;
     } elseif ($se_id) {
         $id = $se_id;
     } else {
         $id = null;
     }
     if ($id) {
         $where = "WHERE se_id = " . $obj->getSqlColValue('se_id', $id);
         $record = $obj->SelectRecord(null, $where, MYSQL_ASSOC, false);
         if (is_array($record)) {
             globalizeArray($record);
         } else {
             $_SESSION['errorMsgs'] = array('erroneousParam' => 'Erroneous parameter passed.');
             $error = '&error=1';
             goToURL($actScript . $error);
         }
     } else {
         goToURL($actScript);
     }
     $buttons = '<a href="#" class="btn btn-info btn-circle btn-block"><i class="icon-eye"></i>&nbsp;Preview</a>';
     $buttons .= '<hr/>';
     $buttons .= '<button type="submit" class="btn btn-block btn-success btn-circle" onclick="document.getElementById(\'in2Action\').value=\'edit\'"><i class="fa fa-check"></i>&nbsp;' . $arrLang[$_SESSION['lang']]['update'] . '</button>';
     $buttons .= '<button type="button" class="btn btn-block btn-danger btn-circle" onclick="jQuery(\'#btnReset\').click(); deleteFrmRecord()"><i class="fa fa-trash-o"></i>&nbsp;' . $arrLang[$_SESSION['lang']]['delete'] . '</button>';
     $buttons .= '<button type="button" class="btn btn-block btn-default btn-circle" onclick="window.location=\'' . $actScript . '\'"><i class="fa fa-plus"></i>&nbsp;' . $arrLang[$_SESSION['lang']]['addnew'] . '</button>';
     /**
      * If image/doc/video value exists; add View & Remove buttons