예제 #1
0
파일: Auth.php 프로젝트: deksoke/ci
 public function profile()
 {
     setHeaderTitle('Edit Profile');
     if ($this->input->post('btSubmit') != null) {
         //get user data
         $email = $this->input->post('email');
         $pass = $this->input->post('password');
         $name = $this->input->post('name');
         //get user_id from database
         $user_id = $this->aauth->get_user()->id;
         $this->aauth->update_user($user_id, $email);
         redirect('member', 'refresh');
         exit;
     }
     $data['member'] = $this->aauth->get_user();
     loadHeader();
     $this->load->view('auth/signup', $data);
     loadFooter();
 }
예제 #2
0
loadHead();
?>
</head>
<body>
    <?php 
loadNavbar();
?>
    <div class="container-fluid">
        <div class="row top-buffer">
            <div class="col-md-3">
                <h1 class="text-center">About the Brothers</h1>
            </div>
        </div>
        <hr>
    </div>
    <div class="container-fluid">
        <!-- TODO:Add Parallax Scrolling Images-->
        <!-- TODO:Maybe add Instagram feed viewer-->
        <hr>
    </div>
    <?php 
loadFooter();
?>

    <script src="js/jquery-1.11.2.min.js"></script>
    <script src="js/bootstrap-3.3.5.min.js"></script>
    <script src="leaflet/leaflet.js"></script>
    <script src="js/leafletMap.js"></script>
</body>
</html>
예제 #3
0
/**
 * show an error message
 * @param String $value
 * @param databse connection
 */
function return_error($value, $type = "message", $dbcon = "")
{
    global $route;
    //set error message
    $errormsg["no_id"] = Lang::l_("error_noid");
    $errormsg["invalid_id"] = Lang::l_("error_invalidid");
    $errormsg["no_xml_file"] = Lang::l_("error_noxmlfile");
    $errormsg["invalid_xml_file"] = Lang::l_("error_invalidxmlfile");
    $errormsg["no_route"] = Lang::l_("error_noroute");
    $errormsg["upload_error"] = Lang::l_("error_uploaderror");
    $errormsg["mysql"] = Lang::l_("error_mysql");
    if ($value == "mysql") {
        log_error(@$dbcon->error);
    }
    //unknown error message
    if (!isset($errormsg[$value])) {
        log_error("Unknown error message:" . $value);
    }
    //output
    // do not show header for mesaage
    if ($type == "full") {
        loadHeader();
        ?>
	<div class="container-fluid">
		<?php 
    }
    ?>
		<p class="alert alert-danger alert-dismissable fade in">
			<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
			<span class="sr-only">Error:</span>
			<?php 
    echo $errormsg[$value];
    ?>
	<?php 
    //show link to update route if necessary
    if ($value == "invalid_xml_file" && isset($route->train)) {
        ?>
			<a href="?id=<?php 
        echo $route->id;
        ?>
&train=<?php 
        echo $route->train->ref;
        ?>
&rf=1" class="alert-link"><?php 
        echo Lang::l_("Update data");
        ?>
</a>
		<?php 
    }
    ?>
 
			<button type="button" class="close" data-dismiss="alert" aria-label="Close">
  				<span aria-hidden="true">&times;</span>
			</button>
		</p>
	<?php 
    if ($type == "full") {
        ?>
	</div>
		<?php 
        enterID();
        uploadRoute();
        Search::showSearchBox();
        showRoutes();
        loadFooter();
    }
}
예제 #4
0
파일: Member.php 프로젝트: deksoke/ci
 public function edit($id)
 {
     setHeaderTitle('Member - Edit');
     if ($this->input->post('btsave') != null) {
         $data = array('member_name' => $this->input->post('member_name'), 'member_tel' => $this->input->post('member_tel'), 'member_addr' => $this->input->post('member_addr'));
         $this->db->where('id', $id);
         $this->db->update('tb_member', $data);
         redirect('member', 'refresh');
         exit;
     }
     $member = $this->getDataById($id);
     loadHeader();
     $this->load->view('member/edit', array('member' => $member));
     loadFooter();
 }
예제 #5
0
파일: Upload.php 프로젝트: deksoke/ci
 public function index()
 {
     loadHeader();
     $this->load->view("upload/upload_form");
     loadFooter();
 }