示例#1
0

Permission is hereby granted, free of charge, to any person obtaining a copy of 
this software and associated documentation files (the "Software"), the rights to 
use, copy, modify, merge, publish, or distribute copies of the Software, and to 
permit persons to whom the Software is furnished to do so, subject to the 
following conditions:

The above copyright notice and this permission notice shall be included in all 
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
////////////////////////////////////////////////////////////////////////////////////////////////////////// */
include $this->header;
HtmlBuilder::start_view_block('div', '', 'jumbotron', '');
HtmlBuilder::insert_html_tag('h2', '', '', '', $this->get('act_heading'));
HtmlBuilder::insert_html_tag('pgraph', '', '', '', $this->get('output'));
HtmlBuilder::start_view_block('div', '', 'jumbotron', '');
HtmlBuilder::insert_link($this->get('button_link'), '', 'btn btn-info btn-lg', '', '');
Components::insert_glyphicon($this->get('glyph_name'), ' ' . $this->get('button_text'));
HtmlBuilder::end_view_block('a');
HtmlBuilder::end_view_block('div');
include $this->footer;
?>
  
       
示例#2
0
permit persons to whom the Software is furnished to do so, subject to the 
following conditions:

The above copyright notice and this permission notice shall be included in all 
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
////////////////////////////////////////////////////////////////////////////////////////////////////////// */
include $this->header;
//start_view_block($tagName, $id=NULL, $class=NULL, $style=NULL)
HtmlBuilder::insert_html_tag('h3', '', '', '', 'Please enter new password');
HtmlBuilder::start_form('users', 'reset_password', 'post');
// if ($this->get('show_textbox'))
//  {
HtmlBuilder::insert_form_input('password', 'password', '', 'position: relative; left: 85px;top: 5px;');
HtmlBuilder::insert_form_input('password', 'confirm_password', '', 'position: relative; left: 25px;top: 5px;');
//   }
HtmlBuilder::insert_html_tag('pgraph');
/* insert twitter-bootstrap submit button */
HtmlBuilder::insert_button("submit", "btn btn-primary", "submit", "Submit");
HtmlBuilder::start_view_block('p', '', '', '');
HtmlBuilder::insert_link('', '', '', '', 'Cancel');
HtmlBuilder::end_view_block('p');
/* end of login form */
HtmlBuilder::end_view_block('form');
include $this->footer;
示例#3
0
 public static function insert_posts_panel($headingName, $array)
 {
     HtmlBuilder::insert_html_tag('h2', '', '', '', ucwords($headingName));
     HtmlBuilder::start_view_block('div', '', 'panel panel-default', 'border-radius:5px;border-style:solid;border-width:2px; height: 100%;');
     HtmlBuilder::start_view_block('div', '', 'panel-heading', '');
     HtmlBuilder::insert_link('#', '', 'pull-right', '', 'View All');
     HtmlBuilder::end_view_block('a');
     HtmlBuilder::end_view_block('div');
     HtmlBuilder::start_view_block('div', '', 'panel-body', '');
     HtmlBuilder::start_view_block('ul', '', 'list-group', '');
     foreach ($array as $value) {
         HtmlBuilder::start_view_block('li', '', 'list-group-item', '');
         HtmlBuilder::insert_html_tag('span', 'username', '', 'font-weight:bold;', $value['title']);
         HtmlBuilder::insert_html_tag('span', 'created', '', 'float: right;', 'Posted on ' . $value['created']);
         HtmlBuilder::insert_html_tag('br', '', '', '', '');
         HtmlBuilder::insert_html_tag('span', 'message', '', '', $value['body']);
         HtmlBuilder::end_view_block('li');
     }
     HtmlBuilder::end_view_block('ul');
     HtmlBuilder::end_view_block('div');
     HtmlBuilder::end_view_block('div');
 }
示例#4
0
 public function insert_link($url, $id = NULL, $class = NULL, $style = NULL, $text = '')
 {
     HtmlBuilder::insert_link($url, $id, $class, $style, $text);
 }