Example #1
0
 * User: yildiz
 * Date: 16.12.15
 * Time: 21:14
 */
require_once 'config.php';
login_required();
$title = "templates";
$tab = 'temp';
$templates = query("SELECT id,name,columns FROM templates ORDER BY id ASC");
$table = "";
foreach ($templates as $row) {
    $plink = '<a href="" onClick="window.open(\'templates_preview.php?id=' . $row['id'] . '\',width=800,height=600)" title="preview"><img src="media/images/find.png" alt="preview"/></a>';
    $dlink = '<a href="templates_delete.php?id=' . $row['id'] . '" onclick="return confirm(\'Are you sure you want to delete this template?\');" title="delete"><img src="media/images/delete.png" alt="delete"/></a>';
    $elink = '<a href="templates_edit.php?id=' . $row['id'] . '" title="edit"><img src="media/images/page_edit.png" alt="edit"/></a>';
    $table .= "<tr><td>" . $row['id'] . "</td><td>" . $row['name'] . "</td><td>" . $row['columns'] . "</td><td>" . $plink . " " . $dlink . " " . $elink . "</td></tr>\n";
}
$message = error_messages();
$content = <<<EOF
<a href="templates_new.php" class="large">new template »</a>
{$message}
    <table>
        <tr>
            <th></th>
            <th>name</th>
            <th>columns</th>
            <th></th>
        </tr>
{$table}
    </table>
EOF;
include 'layout.php';
Example #2
0
      </div>
<div class="bread_crambs">
<ol>
<li><a href="/">トップページ</a></li>
<li>お問い合わせ</li>
</ol>
</div>
    </div>
    <div id="wrapper">
      <div id="main">
        <?php 
echo notice_message();
?>
 
        <?php 
echo error_messages();
?>
 
        <form action="inquiry.php" method="post">
<div class="section">
         <h3>お問い合わせフォーム</h3>
        <p class="float_right"><img src="/images/inquiry.jpg" width="200px" height="210px" /></p>
         <p>
            <label>メールアドレス</label><br />
            <?php 
echo text_field('email');
?>
          </p>
          <p>
            <label>お問い合わせ内容</label><br />
            <?php 
Example #3
0
			<li><a href="search.php" class="button">Search</a></li>
		</ul>
	</div>
</section>
</header>
<!-- Main -->
<article id="main">
	
	<section class="wrapper style5">
		<div class = "container-body">
			<div class="inner">
				<?php 
echo message();
?>
				<?php 
echo form_errors(error_messages());
?>
				<section>
					<form method="post" action="#">
						<?php 
if (isset($_GET["jumperid"])) {
    $query = "Select * from jumperdr where intJumperID = {$_GET["jumperid"]} limit 1";
    $result = mysqli_query($connection, $query);
    if (!$result) {
        die("database failed at layou1_edit form starting." . mysqli_error($connection));
    }
    $row = mysqli_fetch_assoc($result);
    $query2 = "Select * from tabTag where chUnit = '{$row["chUnit"]}' and vcSubSystem = '{$row["vcSubsystem"]}' and vcSystem = '{$row["vcSystem"]}' and vcSystemNo = '{$row["vcSystemNo"]}' and vcEqpt = '{$row["vcEqpt"]}' and vcEqptNo = '{$row["vcEqptNo"]}'";
    $result2 = odbc_exec($connection2, $query2);
    if (!$result2) {
        die("database odbc failed at layou1_edit form starting.");
Example #4
0
<?php

echo error_messages($user);
?>

<?php 
$url = $user->is_new_record() ? ':core/users/create' : ':core/users/edit/' . $user->get_id();
$url = admin_url($url);
$builder = new \zing\cms\admin\helpers\StandardFormBuilder($url, 'post');
$builder->set_prefix('user');
$builder->set_errors($user->errors());
$builder->set_context($user, 'get');
$builder->cancel_url(admin_users_url());
$builder->start_group('User');
$builder->text_field('username')->label('Username')->required()->note('Must be unique')->display_hint('half');
$builder->text_field('email')->label('Email')->required()->note('Must be unique')->display_hint('half');
$builder->text_field('forename')->label('Forename')->required()->display_hint('half');
$builder->text_field('surname')->label('Surname')->required()->display_hint('half');
$builder->end_group();
$builder->start_group('Password');
$builder->password_field('password')->label('New Password')->display_hint('half')->note('Only enter if you wish to change ' . h($user->get_forename()) . '\'s password');
$builder->password_field('password_confirmation')->label('Confirm New Password')->display_hint('half');
$builder->end_group();
echo $builder->to_html();