PATH:
home
/
letacommog
/
letaweb
/
protected
/
views
/
site
<div class="bg-dark space-sm"> <div class="page_title container"> <div class="title_section"> <h2 class="content" style="text-align:center;">Create your website</h2> </div> </div> </div> <div class="container"> <div class="row-fluid"> <div id="template_categroy" class="span12"> <div class="template_categroy_wrap"> <div class="template_categroy_box"> <ul class="template_category_list"> <?php $currentCategory = $template->category; ?> <li><a class="<?php echo $currentCategory == 0 ? 'active' : '' ?>" href="create/?catname=all">All</a></li> <?php foreach ($categories as $c): ?> <li><a class="<?php echo $c->id == $currentCategory ? 'active' : '' ?>" href="create/<?php echo '?cat='.$c->id.'&catname='.$c->name; ?>"><?php echo $c->display_name ?></a></li> <?php endforeach; ?> </ul> </div> </div> </div> <div class="form-horizontal"> </div> </div> <div class="row-fluid"> <div class="template_preview col-md-6"> <div class="" style="margin-bottom:5px"> <a href="<?php echo $template->getEditSiteURL().'/fview';?>" target="_blank" class="btn btn-primary btn-lg btn-block btn-border">Preview your site</a> </div> <div class="thumbnail"> <?php $template_path = 'websites/'.$template->name.'/screenshot.jpg'; ?> <img src="<?php echo Yii::app()->getBaseUrl(true).'/'.$template_path; ?>" /> </div> <h1><?php echo $template->display_name ?></h1> <div id="form_detail"> <?php echo $template->description ?> </div> </div> <div class="col-md-6"> <div id="contact"> <?php $form = $this->beginWidget('CActiveForm', array( // 'action' => $this->createUrl('site/template'), 'method' => 'post', 'htmlOptions' => array('id' => 'form_create_page'), )); ?> <?php echo CHtml::activeHiddenField($model, 'id') ?> <?php echo CHtml::activeHiddenField($model, 'template_id') ?> <div class=""> <?php echo CHtml::errorSummary($model); ?> </div> <div class="form-group"> <div class="controls input-group"> <?php echo CHtml::activeTextField($model, 'name', array('class' => 'form-control', 'placeholder' => 'Enter your website URL')) ?> <span class="input-group-addon">.<?php echo Yii::app()->params['mainsite_url']; ?></span> </div> <div id="success_msg" class="alert alert-success" style="display:none;">Your domain is valid and can be use</div> <div id="error_list" class="alert alert-danger" style="display:none;"></div> </div> <div class="form-group"> By creating website, you agree to our <?php echo CHtml::link('terms of service', array('site/page?name=tos'), array('target' => '_blank', 'class' => '')); ?>. </div> <div class="form-group"> <button type="submit" class="btn btn-primary">Create Website</button> </div> <?php $this->endWidget(); ?> </div> </div> </div> </div> <script type="text/javascript"> $(document).ready(function() { $('#form_create_page').validate( { rules: { 'PageCreationForm[name]': { required: true, domain: true, remote: "<?php echo $this->createUrl('page/check_domain') ?>" } }, showErrors : function(validate, errorMap, errorList) { if(this.errorList.length == 0) { $('#success_msg').show(); $('#error_list').hide(); return; } $('#error_list').html(); var s = ''; for ( var i = 0; this.errorList[i]; i++ ) { var error = this.errorList[i]; s += error.message + '<br/>'; } $('#error_list').html(s); $('#error_list').show(); $('#success_msg').hide(); }, /*submitHandler : function(frm) { var frm = $(frm); $.ajax({ type: frm.attr('method'), url: frm.attr('action'), data: frm.serialize(), success: function (data) { alert('ok'); } }); }*/ }); }); </script>
[+]
..
[-] top_content.php
[edit]
[-] create.php
[edit]
[-] forgot.php
[edit]
[-] signup_complete.php
[edit]
[-] help_category.php
[edit]
[-] template.php
[edit]
[-] index.php
[edit]
[-] slider.php
[edit]
[-] build.php
[edit]
[-] resent_active_mail.php
[edit]
[-] login.php
[edit]
[-] error.php
[edit]
[-] recover_success.php
[edit]
[-] active_success.php
[edit]
[-] help.php
[edit]
[-] page.php
[edit]
[-] recover.php
[edit]
[-] features.php
[edit]
[-] active_mail_send_success.php
[edit]
[-] create_template.php
[edit]
[-] active_fail.php
[edit]
[-] forgot_password_email_sent.php
[edit]
[-] social.php
[edit]
[-] price.php
[edit]
[-] signup.php
[edit]
[-] help_form.php
[edit]
[-] contact.php
[edit]
[-] templates.php
[edit]