Пример #1
0
 * @Section		general
 */
if (!isset($secQueObj)) {
    include_once SITE_CLASS_APPLICATION . "class.SecQuestion.php";
    $secQueObj = new SecQuestion();
}
$gdbobj->getRequestVars();
$view = GetVar("view");
$iQuestionId = GetVar("iQuestionId");
$actionfile = GetVar("file");
$arr = array();
if (count($_POST) > 0) {
    $arr[0] = $_POST;
} else {
    if ($view == 'edit') {
        $arr = $secQueObj->select($iQuestionId);
        //prints($arr);//exit;
    } else {
        $view = "add";
    }
}
$lang = $gdbobj->getLanguage();
?>
<form name="frmadd" id="frmadd" action="index.php?file=<?php 
echo $actionfile;
?>
&view=action" method="post" enctype="multipart/form-data">
     <?php 
echo $generalobj->PrintElement("view", "view", $view, "Hidden");
?>
     <?php 
Пример #2
0
    	{
    ?>
    		<script type="text/javascript">
    			SITE_URL_DUM = '<?php  echo SITE_URL_DUM?>';
            var msg = '<?php echo $html?>';
            redirectdashboard();
            function redirectdashboard()
    			{
    				window.parent.document.getElementById('alert').innerHTML = msg;
               window.parent.jQuery.fn.colorbox.close();
            }
    		</script>
    <?php  
    	exit();
      }
    */
    exit;
}
$usrdtls = $orgUserObj->select($iUserId);
if ($num == 1) {
    $ques = $secquesObj->select($usrdtls[0]['iSecretQuestion1ID']);
} else {
    if ($num == 2) {
        $ques = $secquesObj->select($usrdtls[0]['iSecretQuestion2ID']);
    }
}
$lang = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_LANG'];
$ques = $ques[0]['vQuestion_' . $lang];
$smarty->assign('num', $num);
$smarty->assign('ques', $ques);
$smarty->assign('iUserId', $iUserId);