<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'); ?> <script type="text/javascript"> var baseurl = <?php echo "\"http://{$_SERVER['SERVER_ADDR']}/Controlsystem/public/index.php/\""; ?> ; </script>
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(); }
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>'; }
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 }
<?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();