public function getLoginForm($aRow = null, $bReload = false)
 {
     if ($this->aLoginForm != null) {
         return $this->aLoginForm;
     }
     if (!empty($aRow["error"])) {
         FlexiPlatformHandler::getPlatformHandler()->addMessage($aRow["error"], "error");
     }
     $iSize = 25;
     $this->aLoginForm = $aForm = array("txtLogin" => array("#type" => "textfield", "#title" => flexiT("User-Id", "first"), "#weight" => 5, "#maxlength" => 100, "#required" => true, "#size" => $iSize, "#default_value" => ""), "txtPassword" => array("#type" => "password", "#title" => flexiT("Password", "first"), "#weight" => 7, "#maxlength" => 50, "#required" => true, "#size" => $iSize, "#default_value" => ""), "txtURL" => array("#type" => "hidden", "#default_value" => FlexiConfig::$sBaseURL), "bSubmit" => array("#type" => "submit", "#value" => flexiT("Login", "first"), "#weight" => 57));
     //fill in form value
     FlexiFormUtil::mergeFormWithData($aForm, $aRow);
     $aTheForm = array_merge($aForm, array("#type" => "form", "#upload" => false, "#method" => "post", "#action" => flexiURL("mod=FlexiLogin&method=login")));
     $aTheLoginForm = array("#type" => "div", "#title" => flexiUCFirstT("login form"), "form" => $aTheForm, "#attributes" => array("class" => "flexiphp_login_div"));
     //todo event for form before output
     $this->aLoginForm = $aTheLoginForm;
     return $this->aLoginForm;
 }
Example #2
0
 public function url($aaParam = array(), $asMethod = null, $asModule = null, $asURL = "", $bAjax = false)
 {
     $aParam = is_null($aaParam) ? array() : $aaParam;
     //getting class name without "Controller"
     $sModule = is_null($asModule) ? $this->getVar("#module") : $asModule;
     $sMethod = is_null($asMethod) ? $this->getVar("#method") : $asMethod;
     //var_dump($sModule);
     //var_dump($asURL);
     $sURL = "";
     if (!empty($sModule) && !empty($sMethod)) {
         //echo "not empty";
         $sURL = "?" . FlexiConfig::$aModuleURL["module"] . "=" . $sModule . "&" . FlexiConfig::$aModuleURL["method"] . "=" . $sMethod;
     }
     $aParamQuery = array();
     foreach ($aParam as $sKey => $sValue) {
         $aParamQuery[] = $sKey . "=" . $sValue;
     }
     $sURL .= empty($sURL) ? "?" : "&";
     $sURL .= implode("&", $aParamQuery);
     $sURL .= empty($sURL) ? "?" : "&";
     $sURL .= $asURL;
     return flexiURL($sURL, $bAjax);
 }
Example #3
0
<?php

$sTarget = isset($vars["#target"]) ? " target=\"" . $vars["#target"] . "\"" : "";
echo isset($vars["#prefix"]) ? $vars["#prefix"] : "";
?>
	<a href="<?php 
echo flexiURL($vars["#path"]);
?>
"<?php 
echo $sTarget;
?>
<? if (isset($vars["#attributes"])) { echo FlexiStringUtil::attributesToString($vars["#attributes"]); } ?>><?php 
echo $vars["#title"];
?>
</a>
<?php 
echo isset($vars["#suffix"]) ? $vars["#suffix"] : "";
Example #4
0
 public function redirectControl($aaParam = array(), $asMethod = null, $asModule = null, $bAjax = false)
 {
     $aParam = is_null($aaParam) ? array() : $aaParam;
     $sModule = is_null($asModule) ? $this->sModule : $asModule;
     $sMethod = is_null($asMethod) ? $this->sMethod : $asMethod;
     $sURL = "";
     if (!empty($sModule) && !empty($sMethod)) {
         $sURL = "?" . FlexiConfig::$aModuleURL["module"] . "=" . $sModule . "&" . FlexiConfig::$aModuleURL["method"] . "=" . $sMethod;
     }
     $aParamQuery = array();
     foreach ($aParam as $sKey => $sValue) {
         $aParamQuery[] = $sKey . "=" . $sValue;
     }
     $sURL .= empty($sURL) ? "?" : "&";
     $sURL .= implode("&", $aParamQuery);
     $sURL .= empty($sURL) ? "?" : "&";
     //$sURL .= $asURL;
     //echo "url: " . $sURL;
     //die();
     return $this->redirectURL(flexiURL($sURL, $bAjax));
 }
Example #5
0
			<?php 
echo $this->renderFormHiddenRaw("op", "");
?>
			<table class="tableDataList" style="width: 500px; ">
				<thead>
					<th><?php 
echo $this->renderCheckAllBox("checkList[]");
?>
</th>
					<th width="24%">Key</th>
					<th width="42%">Value</th>
					<th width="42%">Label</th>
				</thead>
				<tbody>
				<? foreach($aList as $aRow): 
					$sLink = flexiURL("mod=FlexiRepoList&method=form&rid=" . $aRow["id"]);
				?>
				<tr>
					<td><?php 
echo $this->renderCheckBox($aRow["id"], "checkList[]");
?>
</td>
					<td><a href="<?php 
echo $sLink;
?>
"><?php 
echo $aRow["listkey"];
?>
</a></td>
					<td><a href="<?php 
echo $sLink;