Example #1
0
File: User.php Project: etienne/jam
 function Connect()
 {
     global $_JAM;
     // Check whether user has submitted the login form
     if ($_POST['connect']) {
         // Validate login
         $where = array("login = '******'login'] . "'", "password = '******'password'] . "'");
         if ($userInfo = Query::SingleRow('users', $where)) {
             // Login succeeded; create cookie and reload this page
             $this->Login($userInfo['id']);
             HTTP::ReloadCurrentURL();
             return true;
         } else {
             print e('p', array('class' => 'error'), $_JAM->strings['admin']['incorrectLogin']);
         }
     }
     // Display form if login was incorrect or user has not yet submitted the form
     $form = new Form();
     $form->Open();
     print $form->Field('login', 40, $_JAM->strings['admin']['login']);
     print $form->Password('password', 40, $_JAM->strings['admin']['password']);
     print $form->Submit('connect', $_JAM->strings['admin']['connect']);
     $form->Close();
 }
Example #2
0
function WriteActivity($Activity, &$Sender, &$Session, $Comment)
{
    ?>
<li id="Activity_<?php 
    echo $Activity->ActivityID;
    ?>
" class="Activity<?php 
    echo ' ' . $Activity->ActivityType;
    ?>
"><?php 
    if ($Session->IsValid() && ($Session->UserID == $Activity->InsertUserID || $Session->CheckPermission('Garden.Activity.Delete'))) {
        echo Anchor('Delete', 'garden/activity/delete/' . $Activity->ActivityID . '/' . $Session->TransientKey() . '?Return=' . urlencode(Gdn_Url::Request()), 'Delete');
    }
    if ($Activity->ActivityPhoto != '' && $Activity->ShowIcon == '1') {
        if ($Activity->InsertUserID == $Session->UserID) {
            echo '<a href="' . Url('/garden/profile/' . urlencode($Activity->ActivityName)) . '">' . $Sender->Html->Image('uploads/n' . $Activity->ActivityPhoto) . '</a>';
        } else {
            echo $Sender->Html->Image('uploads/n' . $Activity->ActivityPhoto);
        }
    }
    ?>
<h3><?php 
    echo Format::ActivityHeadline($Activity, $Sender->ProfileUserID);
    ?>
<em><?php 
    echo Format::Date($Activity->DateInserted);
    ?>
</em><?php 
    echo $Activity->AllowComments == '1' && $Session->IsValid() ? ' ' . Anchor('Comment', '#CommentForm_' . $Activity->ActivityID, 'CommentOption') : '';
    ?>
</h3><?php 
    if ($Activity->Story != '') {
        ?>
<blockquote><?php 
        echo $Activity->Story;
        // story should be cleaned before being saved.
        ?>
</blockquote>
   <?php 
    }
    if ($Activity->AllowComments == '1') {
        // If there are comments, show them
        if (is_object($Comment) && $Comment->CommentActivityID == $Activity->ActivityID) {
            ?>
<ul class="Comments"><?php 
            while (is_object($Comment) && $Comment->CommentActivityID == $Activity->ActivityID) {
                if (is_object($Comment)) {
                    WriteActivityComment($Comment, $Sender, $Session);
                }
                $Comment = $Sender->CommentData->NextRow();
            }
        } else {
            ?>
<ul class="Comments Hidden"><?php 
        }
        if ($Session->IsValid()) {
            ?>
            <li class="CommentForm">
            <?php 
            echo Anchor('Write a comment', '/garden/activity/comment/' . $Activity->ActivityID, 'CommentLink');
            $CommentForm = new Form();
            $CommentForm->SetModel($Sender->ActivityModel);
            $CommentForm->AddHidden('ActivityID', $Activity->ActivityID);
            $CommentForm->AddHidden('Return', Gdn_Url::Request());
            echo $CommentForm->Open(array('action' => Url('/garden/activity/comment'), 'class' => 'Hidden'));
            echo $CommentForm->TextBox('Body', array('MultiLine' => TRUE, 'value' => ''));
            echo $CommentForm->Close('Comment');
            ?>
</li>
         <?php 
        }
        ?>
         </ul>
      <?php 
    }
    ?>
</li>
<?php 
}
Example #3
0
									<th id="number">&nbsp;</th>
									<th id="item_name">商品名</th>
									<th>個数</th>
									<th>サイズ</th>
									<th>&nbsp;&nbsp;</th>
								</tr>
							</thead>
							<tbody class="order_table_scroll">

							</tbody>
						</table>
				</div>
			</div>
			<div class="content_right_bottom">
				<?php 
echo Form::Open('index.php/controlsystem/order/cfm');
?>
				<?php 
echo Form::Button('button', '確認');
?>
				<?php 
echo Form::Close();
?>
			</div>
		</div>
	</div>
	<div id="msg"></div>
	<?php 
echo Asset::js('jquery-1.11.3.min.js');
?>
	<script type="text/javascript">
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 main-chart">

                            <!-- main start -->

                            <center>

                                <h1 align="center">DepartmentManagement</h1>

                                <br><br><br>



                                <?php 
echo Form::Open('department/delete');
?>
 
                                <input type="button" value="Remove" id="column" class="button" style="float:right;margin-left:2px;">
                                <?php 
echo Html::anchor("department/add", 'Add', array('class' => 'button', 'style' => 'float: right;'));
?>

                                <br><br><br><br>

                                <table class="table table-striped table-bordered table-hover responsive" name="table">

                                    <thead>

                                        <tr align="center">
                                            <th class="col-md-3 col-xs-11">Department</th>
Example #5
0
<?php

echo Form::Open('client/auth');
?>
<div class="form_staffNo">
    <h3>社員番号</h3>
    <input type="text" name="input_staffNo" value="" maxlength="3">
</div>
<input type="submit" name="name" value="ログイン">
<?php 
echo Form::close();
Example #6
0
 public function DiscussionController_CommentBodyAfter_Handler(&$Sender)
 {
     $Session = Gdn::Session();
     $Comment = $Sender->EventArguments['Comment'];
     if (is_object($Sender->CurrentReply) && $Sender->CurrentReply->ReplyCommentID == $Comment->CommentID) {
         echo '<ul class="Replies">';
         while (is_object($Sender->CurrentReply) && $Sender->CurrentReply->ReplyCommentID == $Comment->CommentID) {
             VanillaCommentRepliesPlugin::WriteReply($Sender, $Session);
             $Sender->CurrentReply = $Sender->ReplyData->NextRow();
         }
     } else {
         echo '<ul class="Replies Hidden">';
     }
     if ($Session->IsValid() && $Sender->Discussion->Closed == '0') {
         echo '<li class="ReplyForm">';
         echo Anchor('Write a reply', '/vanilla/post/reply/' . $Comment->CommentID, 'ReplyLink Hidden');
         $ReplyForm = new Form();
         $ReplyForm->SetModel($this->ReplyModel);
         $ReplyForm->AddHidden('ReplyCommentID', $Comment->CommentID);
         echo $ReplyForm->Open(array('action' => Url('/vanilla/post/reply'), 'class' => 'Hidden'));
         echo $ReplyForm->TextBox('Body', array('MultiLine' => TRUE, 'value' => ''));
         echo $ReplyForm->Close('Reply');
         echo '</li>';
     }
     echo '</ul>';
 }
Example #7
0
<?php

echo Form::Open('/deliverysupport/client/auth');
?>
<div class="form_staffNo">
    <h3>社員番号</h3>
    <input type="text" name="input_staffNo" value="" maxlength="3">
</div>
<input type="submit" name="name" value="ログイン">
<?php 
echo Form::close();
Example #8
0
            <!--Main content start-->
            <section id="main-content">
                <section class="wrapper">

                    <div class="row">
                        <div class="col-lg-12 main-chart">

                            <!-- main start -->
                            <h1 align="center">Search Results</h1>

                            <table width="1000">
                                <!--<form name="form" method="GET">-->

                                <?php 
echo Form::Open('search/Delete');
?>


                                <div>
                                    <input type="button" value="Remove" id="column" class="button" href="#" style=" float:right; margin-left: 2px;" >

                                    <input type="button" id="dcolmn" value="Cancel" class="button col" style="display:none;float:right;" >
                                    <button class="button col" type="submit" style="display:none; float:right;margin-right:2px;" >Commit</button>
                                </div>

                                <div class="col" style="display:none"><input type="checkbox" id="check" class="checkAll"/>すべて選択</div>

                                <?php 
foreach ($search as $row) {
    ?>
Example #9
0
            </table>
            <p><?php 
echo Form::submit('search', '検索', array('class' => 'submit'));
?>
</p>
          <?php 
Form::Close();
?>
          </div>
          <div style="clear:both">
        </div>
      </div>
      <div class="content_bottom">
        <div class="result">
          <!--<?php 
echo Form::Open(array('action' => 'index.php/controlsystem/embers/history', 'method' => 'post'));
?>
-->
          <table id="m_result" rules="rows" cellpadding="10">
            <thead class="table_head">
              <tr>
                <th>氏名</th>
                <th>電話番号</th>
                <th id="address">住所</th>
                <th id="detail">&nbsp</th>
              </tr>
            </thead>
            <tbody class="table_scroll">
              <template id="member">
              <tr id="m_view">
    						<td id="m_name"></td>
            <!--**************************************-->
            <!--************MAIN CONTENT**************-->
            <!--**************************************-->

            <!--Main content start-->
            <section id="main-content">
                <section class="wrapper">

                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 main-chart">

                            <!-- main start -->
                            <h1 align="center">Class Management</h1><br><br>

                            <?php 
echo Form::Open('class/delete');
?>
 
                            <input type="button" value="Remove" id="column" class="button" style="float:right;margin-left:2px;">
                            <?php 
echo Html::anchor("class/add", 'Add', array('class' => 'button', 'style' => 'float: right;'));
?>


                            <br><br><br><br>

                            <table class="table table-striped table-bordered table-hover responsive" name="table">
                                <thead>

                                    <tr align="center">
                                        <th class="col-md-4 col-xs-11">Class</th>
Example #11
0
<?php

if (!defined('APPLICATION')) {
    exit;
}
$Form = new Form();
$Form->InputPrefix = '';
echo $Form->Open(array('action' => Url('/search'), 'method' => 'get')), $Form->TextBox('Search'), $Form->Button('Go', array('Name' => '')), $Form->Close();
Example #12
0
            <!--**************************************-->
            <!--************MAIN CONTENT**************-->
            <!--**************************************-->

            <!--Main content start-->
            <section id="main-content">
                <section class="wrapper">

                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 main-chart">

                            <!-- main start -->
                            <h1 align="center">User Management</h1><br><br>

                            <?php 
echo Form::Open('usermanagement/Delete');
?>

                            <input type="button" value="Remove" id="column" class="button" href="#" style=" float:right; margin-left: 2px;" > 

                            <?php 
echo Html::anchor("usermanagement/Add", 'UserAdd', array('class' => 'button', 'style' => 'float: right;'));
?>

                            <br><br><br>

                            <table class="table table-striped table-bordered table-hover responsive" name="table">  

                                <thead>

                                    <tr align="center">
            <section id="main-content">
                <section class="wrapper">

                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 main-chart">

                            <!-- main start -->

                            <center>

                                <h1 align="center">College Management</h1>

                                <br><br><br>

                                <?php 
echo Form::Open('college/delete');
?>
 
                                <input type="button" value="Remove" id="column" class="button" style="float:right;margin-left:2px;">
                                <?php 
echo Html::anchor("collegemanagement/Add", 'Add', array('class' => 'button', 'style' => 'float: right;'));
?>


                                <br><br><br><br>

                                <table class="table table-striped table-bordered table-hover responsive" name="table">
                                    <thead>

                                        <tr align="center">
                                            <th class="col-md-6 col-xs-11">College</th>
Example #14
0
            </table>
            <p><?php 
echo Form::submit('search', '検索', array('class' => 'submit'));
?>
</p>
          <?php 
Form::Close();
?>
          </div>
          <div style="clear:both">
        </div>
      </div>
      <div class="content_bottom">
        <div class="result">
          <!--<?php 
echo Form::Open(array('action' => 'index.php/members/history', 'method' => 'post'));
?>
-->
          <table id="m_result" rules="rows" cellpadding="10">
            <thead class="table_head">
              <tr>
                <th>氏名</th>
                <th>電話番号</th>
                <th id="address">住所</th>
                <th id="detail">&nbsp</th>
              </tr>
            </thead>
            <tbody class="table_scroll">
              <template id="member">
              <tr id="m_view">
    						<td id="m_name"></td>
Example #15
0
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>商品登録</title>
    <?php 
echo Asset::css("item_registration.css");
?>
    <?php 
echo Asset::js('jquery-1.11.3.min.js');
?>
  </head>
  <body>
    <div class="content">
        <?php 
echo Form::Open(array('enctype' => 'multipart/form-data', 'action' => 'index.php/item/registration/commit', 'method' => 'POST'));
?>
          <p><label>商品名<input id="item_name" type="textbox" name="item_name"></label></p>
          <p><label>フリガナ<input id="phonetic" type="textbox" name="phonetic"></labbel></p>
          <p><label>単価<input id="price" type="textbox" name="money">円</label></p>
          <p>カテゴリー
            <label><input id="category" type="checkbox" name="cagegory" value="ピザ">ピザ</label>
            <label><input id="category" type="checkbox" name="category" value="サイド">サイド</label>
            <label><input id="category" type="checkbox" name="category" value="ドリンク">ドリンク</label>
          </p>
          <p>サイズ単価
            <label>S
              <input id="s_price" type="textbox" name="s_money">円</label>
            <label>M
              <input id="m_price" type="textbox" name="m_money">円</label>
            <label>L
            <section id="main-content">
                <section class="wrapper">

                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 main-chart">

                            <!-- main start -->

                            <center>

                                <h1 align="center">Category Management</h1>

                                <br><br><br>

                                <?php 
echo Form::Open('category/delete');
?>
 
                                <input type="button" value="Remove" id="column" class="button" style="float:right;margin-left:2px;">
                                <?php 
echo Html::anchor("category/add", 'Add', array('class' => 'button', 'style' => 'float: right;'));
?>


                                <br><br><br><br>

                                <table class="table table-striped table-bordered table-hover responsive" name="table">
                                    <thead>

                                        <tr align="center">
                                            <th class="col-md-4 col-xs-11">Category</th>
Example #17
0
							<div class="numbutton" id='1'>1</div>
							<div class="numbutton" id='2'>2</div>
							<div class="numbutton" id='3'>3</div>
						</div>
						<div class="numboxrow">
							<div class="numbutton" id='delete'>削除</div>
							<div class="numbutton" id='0'>0</div>
							<div class="numbutton" id='decision'>追加</div>
						</div>
						<div style="clear:both;"></div>
					</div>
				</div>
				<div class="content_bottom_right_bottom">
					<div class="commit">
						<?php 
echo Form::Open('index.php/order/cfm');
?>
						<?php 
echo Form::Button('button', '確認');
?>
						<?php 
echo Form::Close();
?>
					</div>
				</div>
			</div>
		</div>
	<div id="msg"></div>
	<?php 
echo Asset::js('jquery-1.11.3.min.js');
?>
Example #18
0
foreach ($message as $err) {
    ?>
                                <div class="alert alert-info alert-dismissable" align="center">
                                    <b><?php 
    echo $err->get_message();
    ?>
<br></b>
                                </div> 
                            <?php 
}
?>



                            <?php 
echo Form::Open('searchresults');
?>


                            <!--ユーザID入力-->
                            <div class="form-group">
                                <div class="col-md-2 col-xs-12"></div>
                                <label class="col-md-1 control-label">UserID:</label>
                                <div class="col-md-7 col-xs-12">
                                    <input type="text" class="form-control" placeholder="" name = "username">
                                </div>
                                <div class="col-md-2"></div>
                            </div>

                            <div><br><br><br></div>