コード例 #1
0
ファイル: pso_service.form.php プロジェクト: aliihaidar/pso
                                	</p>
                                	<hr/>
                                	<h4>Update</h4>
                                	<p>
                                		<i aria-hidden="true" class="icon-user"> ' . $se_mduser . '</i><br/><i aria-hidden="true" class="icon-calendar"> ' . $se_mddate . '</i>
                                	</p>
                                </div>
                            </div>';
        break;
    case 'delete':
        $obj->DeleteRequest(false);
        if ($obj->ErrorMsgs) {
            $_SESSION['errorMsgs'] = $obj->ErrorMsgs;
            $error = '&error=1';
        }
        goToURL($actScript . "?frmAction=delete{$error}");
        break;
    default:
        $in2Action = 'add';
        $buttons = '<button type="submit" class="btn btn-block btn-success btn-circle" onclick="document.getElementById(\'in2Action\').value=\'add\'"><i class="fa fa-plus"></i>&nbsp;' . $arrLang[$_SESSION['lang']]['add'] . '</button>';
        break;
}
/**
 * Manipulate frmAction for the notification
 */
switch ($frmAction) {
    case 'add':
        $notification = '<div class="alert alert-success">
								    <div class="alert-icon fa fa-check-circle"></div>
								    <div class="alert-content">
								        <strong>Success!</strong>
コード例 #2
0
ファイル: chgPassForm.php プロジェクト: aliihaidar/pso
            $in2Action = 'edit';
            $frmAction = 'edit';
        }
        $buttons = '<input type="submit" value="' . $arrLang[$_SESSION['lang']]['update'] . '" class="btn btn-success btn-circle" onclick="document.getElementById(\'in2Action\').value=\'edit\'" />';
        break;
    case 'editRecord':
        if ($id) {
            $where = "WHERE us_id = " . $obj->getSqlColValue('us_id', $id);
            $record = $obj->SelectRecord(null, $where, MYSQL_ASSOC, false);
            if (is_array($record)) {
                globalizeArray($record);
            } else {
                goToURL($actScript);
            }
        } else {
            goToURL($actScript);
        }
        $buttons = '<input type="submit" value="' . $arrLang[$_SESSION['lang']]['update'] . '" class="btn btn-success btn-circle" onclick="document.getElementById(\'in2Action\').value=\'edit\'" />';
        break;
}
/**
 * Manipulate frmAction for the notification
 */
switch ($frmAction) {
    case 'edit':
        //$notification = '<div id="notificationDiv" class="message success">'.$arrLang[$_SESSION['lang']]['Recordupdated'].'</div>';
        $notification = '<div class="alert alert-success">
	<div class="alert-icon fa fa-check-circle"></div>
	<div class="alert-content">
	<strong>Success!</strong>
	<p>' . $arrLang[$_SESSION['lang']]['Recordupdated'] . '</p>
コード例 #3
0
ファイル: login.php プロジェクト: aliihaidar/pso
		        <tr>
		        <th align="left" >New Password: </th>
		        <td align="left" >' . $newpass . '</td>
		        </tr>
		        </table>';
                sendMail('Password Reset', $content, PROJECT_EMAIL, $email);
                goToURL("index.php?EmailSent=1");
            } else {
                goToURL("index.php?InvalidCreds=1");
            }
        } else {
            goToURL("index.php?EnterUsername=1");
        }
        break;
    default:
        $cAction = 'LoginDone';
        if (!$_SESSION['us_id']) {
            $oLog = new app_log();
            authenticate($oLog, false);
        }
        if (!$_SESSION['us_id']) {
            if ($_SESSION['logStatus'] == 'AlreadyLoggedIn') {
                goToURL("login.php?cAction=AlreadyLoggedIn");
            } else {
                goToURL("login.php?cAction=InvalidCreds");
            }
        } else {
            goToURL("menubuild.php");
        }
        break;
}
コード例 #4
0
ファイル: menubuild.php プロジェクト: aliihaidar/pso
                if ($rows2) {
                    foreach ($rows2 as $row2) {
                        //$row2 = $result2->RowArray(null, MYSQL_ASSOC);
                        buildmenudb($row2, 4);
                    }
                    closemenu(3);
                } else {
                    closemenu(2);
                }
            }
            closemenu(1);
        }
        buildmenu('', '', '', 0, 0, 0, 0, 0, 1);
    }
}
if (isset($_SESSION["us_id"])) {
    getusermenu();
    goToURL('main.php');
} else {
    goToURL('index.php');
}
/*
$otmp_user1 = new tmp_user();
$otmp_user1 -> SelectAll();

while (!$otmp_user1->EOF()){
	$row5=$otmp_user1->Row();
	echo $row5->us_menu;
}
*/
ob_flush();