コード例 #1
0
ファイル: language.php プロジェクト: alejandrozepeda/gvm
 /**
  * Get lang for views
  * @param  string $value this is "word" value from language file
  * @param  string $name name of file with language
  * @param  string $code optional, language code
  * @return string
  */
 public function show($value, $name, $code = LANGUAGE_CODE)
 {
     // lang file
     $file = "app/language/{$code}/{$name}.php";
     // check if is readable
     if (is_readable($file)) {
         // require file
         $_array = (include $file);
     } else {
         // display error
         echo \core\error::display("Could not load language file '{$code}/{$name}.php'");
         die;
     }
     // If
     if (!empty($_array[$value])) {
         return $_array[$value];
     } else {
         return $value;
     }
 }
コード例 #2
0
<ul class="breadcrumb">
	<li><a href='<?php 
echo DIR;
?>
admin'>Admin</a> <span class="divider">></span></li>
	<li><a href='<?php 
echo DIR;
?>
admin/cats'>Categories</a> <span class="divider">></span></li>
	<li>Edit Category</li>
</ul>		


<?php 
echo \core\error::display($error);
?>

<form method='post' enctype='multipart/form-data'>

<p>Title<br><input type='text' name='catTitle' value='<?php 
echo $data['row'][0]->catTitle;
?>
'></p>
<p><input type='submit' name='submit' value='Submit'></p>
</form>
コード例 #3
0
        $("#phone_num").inputmask("(999)-999-9999");
        $("#date_of_birth").datepicker({
            maxDate: new Date,
            changeYear: true,
            changeMonth: true,
            yearRange: "c-100:c"
        }).inputmask("m/d/y");
    });


</script>

<?php 
use helpers\form, core\error;
if (isset($_POST['insert_site_leader'])) {
    echo \core\error::display($data['errors']);
}
?>

<div class="page-header">
    <h2>Register Site Leader</h2>
</div>

<form name="register" method="post" action="#">

    <div id="first_nameDiv" class="form-group">
        <div class="row">
            <div class="col-md-offset-4 col-md-4">
                <label for="first_name">First Name: </label>
                <input type="text" id="first_name" name="first_name" class="form-input text form-control">
            </div>