public static function createPath($category, $subcategory, $name){ switch($category){ case 'image': return StaticFilesHelper::createImagePath($subcategory, $name); break; case 'avatars': return StaticFilesHelper::createAvatarsPath($name); break; case 'common': return StaticFilesHelper::createCommonPath($subcategory, $name); break; case 'txt': return StaticFilesHelper::createTxtPath($subcategory, $name); break; default: return StaticFilesHelper::createCommonPath($subcategory, $name); break; } }
<h2><?php echo $stepValue->stepTitle; ?></h2> <p><?php echo $stepValue->stepText; ?></p> </div> </div> <?php } else { ?> <div class="stepRight" style="width:<?php echo $stepSize; ?>" > <div class="stepUrl"> <img class="grid" src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', 'grid.png'); ?>"> <img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', $stepValue->stepImage); ?>"> </div> <div class="line"> </div> <img class="hexagon" src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', 'hexagon.png'); ?>"> <div class="stepArticle"> <p class="stepNumber"><?php echo $stepValue->stepNumber; ?></p> <p class="stepName"><?php echo Yii::t('step','0043'); ?></p> </div> <div class="stepInfo"> <h2><?php echo $stepValue->stepTitle; ?></h2> <p><?php echo $stepValue->stepText; ?></p> </div> </div> <?php } } ?> </div>
* Date: 18.06.2015 * Time: 22:05 */ ?> <?php $addressee=StudentReg::model()->findByPk($data['addressee_id']); if($data['status']==1) $style='completed'; else $style='';?> <div class="letter"> <span onclick="myLetterSpoiler(this)"> <a> <div class="<?php if($data['status']==1) echo 'completed' ?>"> <span class="addressee"><?php echo $addressee->email ?></span><span class="theme"><?php echo $data['theme'] ?></span><span class='timeletter'><?php echo $data['date'] ?></span> </div> </a> </span> <div class="spoilerBody"> <img src="<?php echo StaticFilesHelper::createPath('image', 'avatars', $addressee->avatar); ?>"/> <table class="letterinfo"> <tr> <td> <div><?php echo $data['date'] ?></div> </td> </tr> <tr> <td> <div><?php echo $addressee->email ?></div> </td> </tr> <tr> <td> <div>Тема: <?php echo $data['theme'] ?></div> </td>
<body onload="centerPage()"> <?php /* @var $this SiteController */ ?> <script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/sliderMainpage.js"></script> <?php $this->renderPartial('_slider'); ?> <?php $mainpageModel = new Mainpage(); $this->pageTitle = $mainpageModel->getTitle(); $subLineImage = StaticFilesHelper::createPath('image', 'mainpage', 'line1.png'); $massAbout=array($block1,$block2,$block3); ?> <?php $this->renderPartial('_aboutUs', array('massAbout' => $massAbout, 'subLineImage' => $subLineImage));?> <?php $stepsArray=array($step1,$step2,$step3,$step4,$step5);?> <?php $this->renderPartial('_steps', array('mainpageModel' => $mainpageModel, 'mainpage' => $mainpage, 'stepsArray' =>$stepsArray)); ?> <?php if(Yii::app()->user->isGuest) { $this->renderPartial('_form'); } ?> </body>
<div class="bgBlue" id="xex"> <table> <tr> <td valign="top"> <img src="<?php echo StaticFilesHelper::createPath('image', 'courses', 'course99.png');?>"> </td> <td> <div id='coursesHeader'> <?php echo Yii::t('courses', '0067'); ?> </div> </td> <td valign="top" style="padding-left: 40px;"> <div id="xex" onclick='xexx("")' style="cursor: pointer;"> <img src="<?php echo StaticFilesHelper::createPath('image', 'common', 'close_button.png');?>"> </div> </td> </tr> </table> <div class='courseBox2'> <span id='courseText2'><?php echo Yii::t('courses', '0148'); ?></span> <?php $tmp = Yii::t('courses', '0229');?> <div id="razv" onclick='wrt("<?php echo $tmp;?>")'> <br> <u><?php echo Yii::t('courses', '0146'); ?></u> </div> <br> <div id="sver" onclick='wrt("");'></div> <br>
<img src="<?php echo StaticFilesHelper::createPath('image', 'graduates', $data['avatar']); ?>"> </td> <td style="padding-left: 10px;"> <div class="text"> <?php echo Yii::t('graduates', '0320')?> <span><?php echo $data['graduate_date'] ?></span> </div> <div class="text1"><?php echo $data['first_name']," ", $data['last_name'] ?></div> <div class="spoiler-title closed"> <?php echo $b = Yii::t('graduates', '0424'), '▼'; ?> </div> <div class="spoiler-body"> <form name=form_recall> <input type=hidden name=id1 id="id1" value="<?php echo htmlspecialchars($a = Yii::t('graduates', '0423')); ?>"> <input type=hidden name=id2 id="id2" value="<?php echo htmlspecialchars($b); ?>"> </form> <img src="<?php echo StaticFilesHelper::createPath('image', 'graduates', "recall.png"); ?>"> <?php echo $data['recall'] ?> </div> <div class="text"> <div> <?php echo Yii::t('graduates', '0316') ?> <span><?php echo $data['position'] ?></span> </div> <div> <?php echo Yii::t('graduates', '0317') ?> <a href="<?php echo $data['work_site'] ?>" target="_blank"> <?php echo $data['work_place'] ?> </a> </div> <div> <?php echo Yii::t('graduates', '0318') ?>
*/ ?> <div class="element"> <?php $this->renderPartial('_editToolbar', array( 'idLecture' => $data['id_lecture'], 'order' => $data['block_order'], 'editMode' => $editMode, ));?> <div class="lessonTask"> <img class="lessonBut" src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'lessButton.png'); ?>"> <div class="lessonButName" unselectable = "on"><?php echo Yii::t('lecture','0086'); ?> 1</div> <div class="lessonLine"></div> <div class="lessonBG"> <div class="instrTaskImg"> <img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'task.png'); ?>"> </div> <div class="content"> <div class="instrTaskText" id="<?php echo "t" . $data['block_order'];?>" onclick="function(){order = this.id;}"> <ol> <?php echo $data['html_block'];?> </ol> </div> <form action="http://ii.itatests.com" method="post" class="sendAnswer"> <input type="hidden" name="task" > <input type="hidden" name="lang" value="c"> <textarea name="code" > </textarea> <input name="send" id="taskSubmit" type="submit" value="<?php echo Yii::t('lecture','0089'); ?>" data-vars="<?=$data['id_lecture']?>"> </form> </div> </div>
<td> <img src="<?php echo StaticFilesHelper::createPath('image', 'common', 'ratIco1.png'); ?>" style="width:<?php echo $footNavSize*0.015 . 'px';?>; padding:0px;"></td> <?php } for ($j=0; $j<Lecture::MAX_RAIT-$lecture->getPostRait(); $j++) { ?> <td> <img src="<?php echo StaticFilesHelper::createPath('image', 'common', 'ratIco0.png'); ?>" style="width:<?php echo $footNavSize*0.015 . 'px';?>; padding:0px;"></td> <?php } ?> <td><img src="<?php if ($lecture->getPostMedal()=='Зараховано') { echo StaticFilesHelper::createPath('image', 'lecture', 'medalIco.png'); } else { echo StaticFilesHelper::createPath('image', 'lecture', 'medalIcoFalse.png'); } ?> " style="width:<?php echo $footNavSize*0.035 . 'px';?>"></td> </tr> </table> <?php if($lecture->getThisMedal()=='Зараховано') { ?> <div class="nextLesonLink"> <p><a href="<?php echo Yii::app()->createUrl('lesson/index', array('id' => $lecture->getPostId()));?>"><input class="nextLessButt" type="submit" value="<?php echo Yii::t('lecture','0088'); ?>"></a></p> </div> <?php }?> </div> <?php } ?>
</div> <div class="lessonBlock" id="lessonBlock"> <?php $this->renderPartial('_sidebar', array('lecture'=>$lecture));?> <div class="lessonText"> <?php if($editMode){?> <div onclick="enableLessonEdit();"> <a href="#"> <img src="<?php echo StaticFilesHelper::createPath('image', 'editor', 'edt_30px.png'); ?>" id="editIco" title="Редагувати заняття"/> </a> </div> <div onclick="showForm();"> <a href="#newBlockForm"> <img src="<?php echo StaticFilesHelper::createPath('image', 'editor', 'add_lesson.png');?>" id="addTextBlock" title="Додати новий блок"/> </a> </div> <?php }?> <h1 class="lessonTheme"><?php echo $lecture['title']?></h1> <br> <?php if($countBlocks){?> <span class="listTheme"><?php echo Yii::t('lecture', '0321');?> </span><span class="spoilerLinks"><span class="spoilerClick">(показати)</span><span class="spoilerTriangle"> ▼</span></span> <div class="spoilerBody"> <?php $summary = Lecture::getLessonCont($lecture->id); for($i=0; $i<count($summary);$i++){
<?php /** * Created by PhpStorm. * User: Ivanna * Date: 19.05.2015 * Time: 16:30 */ ?> <?php if($editMode){?> <div class="editToolbar"> <img src="<?php echo StaticFilesHelper::createPath('image', 'editor', 'up.png');?>" class="editIco" onclick="upBlock(<?php echo $idLecture;?>, <?php echo $order;?>);"> <img src="<?php echo StaticFilesHelper::createPath('image', 'editor', 'down.png');?>" class="editIco" onclick="downBlock(<?php echo $idLecture;?>, <?php echo $order;?>);"> <img src="<?php echo StaticFilesHelper::createPath('image', 'editor', 'delete.png');?>" class="editIco" onclick="deleteBlock(<?php echo $idLecture;?>, <?php echo $order;?>);"> </div> <?php }?> <script type="text/javascript"> function upBlock(idLecture, order){ $.ajax({ type: "POST", url: "http://intita.itatests.com/lesson/upElement", data: {'idLecture':idLecture, 'order':order}, success: function(){ $.fn.yiiListView.update('blocks_list'); return false; } }); }
<?php for ($i = 0; $i < count($teachers); $i++) { ?> <div class="teacherBox"> <table> <tr> <td class="teacherBoxLeft"> <div style=" background: url(<?php echo StaticFilesHelper::createPath('image', 'teachers', $teachers[$i]->foto_url); ?>) no-repeat; background-size: 90px; margin-left: 50px;"> <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/common/img.png"> <a href="<?php echo Yii::app()->createUrl('profile/index', array('idTeacher' => $teachers[$i]->teacher_id)); ?>"> <?php echo Yii::t('module', '0228'); ?>»</a> </div> </td> <td class="teacherBoxRight"> <h2><?php echo Yii::t('module', '0227'); ?></h2> <div style="line-height: 1.2;"> <?php echo $teachers[$i]->last_name . " " . $teachers[$i]->first_name; ?> <br> <?php echo $teachers[$i]->email; ?> <br> <?php echo "Skype: ", $teachers[$i]->skype; ?> </div> </td> </tr> </table> </div> <?php } ?>
<!-- regform --> <div class="mooda2"> <?php $qForm = new StudentReg; $form = $this->beginWidget('CActiveForm', array( 'id' => 'mydialog3', 'enableClientValidation' => true, 'enableAjaxValidation'=>true, 'clientOptions'=>array('validateOnSubmit'=>true,'validateOnChange'=>false), 'action' => array(''), )); ?> <div class="signIn22"> <div id="heedd2" "> <table><tr><td> <img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'errorLess.jpg'); ?>"> </td><td > <h1 >Помилка!</h1> </td> </tr> </table> <div class="happily2"> <p >Щось пішло неправильно, виправ помилку</p> <p >та переходь до наступного матеріалу</p> </div> <input id="signInButtonM22" type="submit" value="ЗАКРИТИ"> </div> <?php $this->endWidget(); ?> </div><!-- form --> </div>
<?php /** * Created by PhpStorm. * User: Ivanna * Date: 12.05.2015 * Time: 15:46 */ ?> <h1><?php echo Yii::t('courses', '0066'); ?></h1> <table> <tr> <!--Для початківців (6) | Для спеціалістів (0) | Для експертів (0) | Усі курси (6) |--> <td valign="top"> <div class='sourse'><a href="<?php echo Yii::app()->createUrl('courses/index', array('selector' => 'junior'));?>"> <?php echo Yii::t('courses', '0140'); ?></a> (<?php echo count(Course::model()->findAllByAttributes(array('level' => array('junior','strong junior','intern')))); ?>)</div></td> <td><div class='sourse'> <img src="<?php echo StaticFilesHelper::createPath('image', 'courses', 'coursesline2.png');?>"/> </div></td> <td valign="top"> <div class='sourse'><a href="<?php echo Yii::app()->createUrl('courses/index', array('selector' => 'middle'));?>"> <?php echo Yii::t('courses', '0141'); ?></a> (<?php echo Course::model()->count('level=:level', array(':level' => 'middle'));?>)</div></td> <td><div class='sourse'> <img src="<?php echo StaticFilesHelper::createPath('image', 'courses', 'coursesline2.png');?>"/> </div></td> <td valign="top"> <div class='sourse'><a href="<?php echo Yii::app()->createUrl('courses/index', array('selector' => 'senior'));?>"> <?php echo Yii::t('courses', '0142'); ?></a> (<?php echo Course::model()->count('level=:level', array(':level' => 'senior'));?>)</div></td> <td><div class='sourse'> <img src="<?php echo StaticFilesHelper::createPath('image', 'courses', 'coursesline2.png');?>"/> </div></td> <td valign="top"> <div class='sourse'><a href="<?php echo Yii::app()->createUrl('courses/index', array('selector' => 'all'));?>"> <?php echo Yii::t('courses', '0143'); ?></a> (<?php echo Course::model()->count('level');?>)</div></td> </tr> </table> <div class="coursesline1"> <a id="coursesline1" href="#form"><img src="<?php echo StaticFilesHelper::createPath('image', 'courses', 'coursesline1.png');?>"/></a> </div>
</td> <td> <span class="detailTitle1"> '.Yii::t("aboutus","0354").'</span> <span class="detailTitle16">'.Yii::t("aboutus","0355").'</span> </td> </tr> </table> </div> <div class="how"> '.Yii::t("aboutus","0360").' </div> <div class="jobfu" style=""> <h1>'.Yii::t("aboutus","0356").'</h1> <table><tr><td> <img src="'.StaticFilesHelper::createPath('image', 'aboutus', '000pronas14.png').'"> </td> <td> <span class="detailTitle1"> '.Yii::t("aboutus","0357").'</span> </td></tr></table> <span class="detailTitle1">'.Yii::t("aboutus","0358").'</span> <h1 id="mashinn" style="">'.Yii::t("aboutus","0359").' </h1> <ul id="theyy" style="" class="detailTitle1"> '.Yii::t("aboutus","0361").' </ul> <div class="sevenn" style=""> <span class="detailTitle1"> '.Yii::t("aboutus","0362").'</span> </div> </div> <div> <div id="beginn" style="" class="detailTitle12"> '.Yii::t("aboutus","0363").'
</div> </div> <div id="slider" class="owl-carousel"> <div class="slide"> <div> <p><?php echo Yii::t('slider','0027'); ?></p> <img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', '1.jpg'); ?>" /> </div> </div> <div class="slide"> <div> <p><?php echo Yii::t('slider','0028'); ?></p> <img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', '2.jpg'); ?>" /> </div> </div> <div class="slide"> <div> <p><?php echo Yii::t('slider','0029'); ?></p> <img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', '3.jpg'); ?>" /> </div> </div> <div class="slide"> <div> <p><?php echo Yii::t('slider','0030'); ?></p> <img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', '4.jpg'); ?>" /> </div> </div> </div> <div class="mouseLine"> <a id="mouseLine" href="#form"><img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', 'mouseLine.png'); ?>"/></a> </div>
public function actionUploadImage(){ $path = StaticFilesHelper::createLectureImagePath(); // files storage folder $dir = Yii::getpathOfAlias('webroot').$path; $_FILES['file']['type'] = strtolower($_FILES['file']['type']); if ($_FILES['file']['type'] == 'image/png' || $_FILES['file']['type'] == 'image/jpg' || $_FILES['file']['type'] == 'image/gif' || $_FILES['file']['type'] == 'image/jpeg' || $_FILES['file']['type'] == 'image/pjpeg') { // setting file's mysterious name $filename = md5(date('YmdHis')).'.jpg'; $file = $dir.$filename; // copying copy($_FILES['file']['tmp_name'], $file); // displaying file $array = array( 'filelink' => '/images/lecture/'.$filename ); echo stripslashes(json_encode($array)); } }
<li><?php echo Yii::t('lecture','0073')." ".$lecture->order.': ';?> <span><?php echo $lecture->title; ?></span> </li> <li><?php echo Yii::t('lecture','0074'); ?> <div id="lectionTypeText"><?php echo $lecture-> getTypeInfo()['text']; ?></div> <div id="lectionTypeImage"><img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', $lecture-> getTypeInfo()['image']); ?>"></div> </li> <br> <li><div id="subTitle"><?php echo Yii::t('lecture','0075'); ?></div> <div id="lectureTimeText"><?php echo $lecture->durationInMinutes.Yii::t('lecture','0076'); ?></div> <div id="lectureTimeImage"><img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'timeIco.png'); ?>"></div> </li> </br> <li> <?php echo '('.$lecture->order.' з '.$lecture->getModuleInfoById()['countLessons'].' занять)'; ?> </li> <div id="counter"> <?php for ($i=0; $i<$lecture->order;$i++){ ?> <img src="<?php echo StaticFilesHelper::createPath('image', 'common', 'ratIco1.png');?>"> <?php } for ($i=0; $i<$lecture->getModuleInfoById()['countLessons']-$lecture->order;$i++){ ?> <img src="<?php echo StaticFilesHelper::createPath('image', 'common', 'ratIco0.png');?>"> <?php } ?> <div id="iconImage"> <img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'medalIcoFalse.png');?>"> </div> </div> </ul> </div>
*/ $headerText = Yii::t('mainpage','0002'); $subheaderText = Yii::t('mainpage','0006'); $dropName = Yii::t('mainpage','0004'); ?> <div class="mainAboutBlock"> <div class="mainAbout"> <div class="header"> <?php echo $headerText; ?> <p> <?php echo $subheaderText; ?> </p> </div> <div class="line1"> <img src="<?php echo StaticFilesHelper::createPath('image', 'aboutus', 'line1.png');?>"> </div> <?php $index=0; $anchor=0; foreach ($massAbout as $val) { $index++; ?> <div class="block"> <ul> <li> <div class="line2"> <img src="<?php echo $val->line2Image;?>"> </div>
); ?> <h1>Викладач <?php print "{$model->last_name} {$model->first_name} {$model->middle_name}"; ?></h1> <?php $this->widget('zii.widgets.CDetailView', array( 'id'=>'teacher-view', 'data'=>$model, 'attributes'=>array( 'teacher_id', 'first_name', 'middle_name', 'last_name', array( 'name'=>'Фото', 'value'=>StaticFilesHelper::createPath("image", "teachers",$model->foto_url), 'type'=>'image', ), array( 'name'=>'profile_text_first', 'type'=>'raw', ), array( 'name'=>'profile_text_short', 'type'=>'raw', ), array( 'name'=>'profile_text_last', 'type'=>'raw', ), 'readMoreLink',
<a href="https://www.linkedin.com/company/intita?trk=biz-companies-cym"> <img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', 'inl.png');?>"/> </a> </td> <td> <a href="http://vk.com/intita"> <img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', 'vkontakte.png');?>"/> </a> </td> </tr> </table> </div> <div class="centerfooter"> <div class="footerlogo"> <a href="<?php echo Yii::app()->request->baseUrl;?>"> <img src="<?php echo StaticFilesHelper::createPath('image', 'mainpage', 'Logo_small.png');?>" > </a> </div> <div class="footercontact"> <p> <?php echo $footer->getTel(); ?><br/> <?php echo $footer->getMobile(); ?><br/> <?php echo $footer->getEmail(); ?><br/> <?php echo $footer->getSkype(); ?><br/> </p> </div> <div class="footermenu"> <ul> <li><a href="<?php echo $this->link1; ?>"><?php echo Yii::t('header','0016'); ?></a></li> <li><a href="<?php echo $this->link2; ?>"><?php echo Yii::t('header','0021'); ?></a></li> <li><a href="<?php echo $this->link5; ?>"><?php echo Yii::t('header','0137'); ?></a></li>
<?php /** * Created by PhpStorm. * User: Ivanna * Date: 12.05.2015 * Time: 16:52 */ ?> <div class="TeacherProfileblock1"> <table> <tr> <td valign="top"> <img src="<?php echo StaticFilesHelper::createPath('image', 'teachers', $model->foto_url);?>"/> </td> <td> <div class="TeacherProfilename"> <?php echo $model->first_name." ".$model->last_name;?></div> <div class="TeacherProfiletitles"> <?php echo Yii::t('teacher', '0065') ?> </div> <div class="editable" onclick="function(){block = 1;}"> <p> <?php echo $model->profile_text_first; ?> </p> </div> <?php $this->renderPartial('_courses', array('id' => $model->teacher_id)); ?> <div class="editable" onclick="function(){block = 2;}">
<div class="rowbuttons"> <?php echo CHtml::submitButton(Yii::t('regexp', '0249'), array('id' => "submitEdit", 'onclick' => 'trimNetwork()')); ?> </div> <?php if(Yii::app()->user->hasFlash('message')): echo Yii::app()->user->getFlash('message'); endif; ?> </div> <div class="studPhoto"> <table class="titleProfileAv"> <tr> <td> <h2><?php echo Yii::t('regexp', '0156');?></h2> </td> </tr> </table> <img class='avatarimg' src="<?php echo StaticFilesHelper::createPath('image', 'avatars', $post->avatar);?>"/> <?php if($post->avatar!=='/avatars/noname.png') { ?> <a style="display: block" href="<?php echo Yii::app()->createUrl('studentreg/deleteavatar');?>"> Видалити аватар </a> <?php } ?> <div class="fileform"> <input class="avatar" type="button" value="<?php echo Yii::t('regexp', '0157');?>"> <input tabindex="-1" type="file" name="upload" class="chooseAvatar" onchange="getName(this.value);" accept="image/jpeg"> <input tabindex="-1" class="uploadAvatar" type="submit"> </div> <div id="avatarHelp"><?php echo Yii::t('regexp', '0158');?></div> <div id="avatarInfo"><?php echo Yii::t('regexp', '0159');?></div>
} ?> </div> </div> <div> <span id="titleModule"><?php echo Yii::t('module', '0215'); ?></span> <b> <?php echo $post->lesson_count." ".Yii::t('module', '0216'); ?></b><?php echo ModuleHelper::getModuleDuration($post->lesson_count,$post->module_duration_hours,$post->hours_in_day,$post->days_in_week) ?> </div> <div> <span id="titleModule"><?php echo Yii::t('module', '0221'); ?></span> <?php echo ModuleHelper::getModulePrice($post->module_price) ?> </div> </br> <div> <span id="titleModule"><?php echo Yii::t('module', '0224'); ?></span> <?php for ($j = 0; $j < $post->rating; $j++) { ?><span> <img src="<?php echo StaticFilesHelper::createPath('image', 'common', 'starFull.png');?>"> </span><?php } for ($j = $post->rating; $j < 10; $j++) { ?><span> <img src="<?php echo StaticFilesHelper::createPath('image', 'common', 'starEmpty.png');?>"> </span><?php } ?> </div> </td> </tr> </table>
$motivtn=$teacherRat->motivation; $knowval=$knowldg; $behval=$behvr; $motivval=$motivtn; } else{ $knowldg='0'; $behvr='0'; $motivtn='0'; $knowval=Null; $behval=Null; $motivval=Null; } ?> <?php if(AccessHelper::canAddResponse()){?> <div class="lessonTask"> <img class="lessonBut" src="<?php echo StaticFilesHelper::createPath('image', 'teachers', 'lessButton.png');?>"> <div class="lessonButName" unselectable="on"><?php echo Yii::t('teacher', '0187'); ?></div> <div class="lessonLine"></div> <div class="responseBG"> <div> <table style="padding-left: 35px; padding-top: 30px;"> <tr> <td align="right"> <b><?php echo Yii::t('teacher', '0188'); ?></b> </td> </tr> <tr> <td align="right"> <?php echo Yii::t('teacher', '0189'); ?> </td>
'url'=>'js:$(this).attr("href")', 'success'=>'js:function(response) { $.fn.yiiGridView.update("lectures-grid"); }' ) ), //HTML options for the button tag. 'url' => 'Yii::app()->createUrl("module/upLesson", array("idLecture"=>$data->primaryKey))', 'visible'=>$editMode, //A PHP expression for determining whether the button is visible. ), 'down' => array ( 'label'=>Yii::t('module', '0380'), //Text label of the button. 'url' => 'Yii::app()->createUrl("module/downLesson", array("idLecture"=>$data->primaryKey))', 'imageUrl'=>StaticFilesHelper::createPath('image', 'editor', 'down.png'), 'options'=>array( 'class'=>'controlButtons;', 'ajax'=>array( 'type'=>'get', 'url'=>'js:$(this).attr("href")', 'success'=>'js:function(response) { $.fn.yiiGridView.update("lectures-grid"); }' ) ), //HTML options for the button tag. 'visible'=>$editMode, ), ), ), array(
<?php /** * Created by PhpStorm. * User: Wizlight * Date: 15.06.2015 * Time: 13:50 */ ?> <div class="teacherBlock"> <div class="leftBlock"> <div style=" background: url(<?php echo StaticFilesHelper::createPath('image', 'teachers', $data['foto_url']); ?>) no-repeat; background-size: 90px;"> <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/common/img.png"> </div> <a href="<?php echo Yii::app()->createUrl('profile/index', array('idTeacher' => $data['teacher_id']))?>"><?php echo Yii::t('teachers','0059'); ?>»</a> </div> <div class="rightBlock"> <ul> <li> <div class="teacherTitle"> <?php echo 'Консультант' ?> </div> </li> <li> <?php echo $data['last_name']." ".$data['first_name']." ".$data['middle_name'];?> </li> <li> <?php echo $data['email']; ?> </li> <li> <?php echo $data['tel']; ?> </li>
<p id="haa" >а також</p> <p >Поділитися успіхом у соціальних мережах:</p> </div> <div style="width: 300px; margin-left: 0px;" class="image" > <div id="uLogin2" x-ulogin-params="display=buttons;fields=email; redirect_uri=<?php echo Yii::app()->request->baseUrl.'/site/sociallogin'?> "> <ul id="uLoginImages"> <li><img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'facebook2.png'); ?>" x-ulogin-button = "facebook" title = "Facebook"/></li> <li><img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'googleplus2.png'); ?>" x-ulogin-button = "googleplus" title = "Google +"/></li> <li><img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'linkedin2.png'); ?>" x-ulogin-button = "linkedin" title = "LinkedIn"/></li> <li><img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'vkontakte2.png'); ?>" x-ulogin-button = "vkontakte" title = "Вконтакте"/></li> <li><img src="<?php echo StaticFilesHelper::createPath('image', 'lecture', 'twitter2.png'); ?>" x-ulogin-button = "twitter" title = "Twitter"/></li> </ul> </div> </div> <input id="signInButtonM2" type="submit" value="ЗАКРИТИ"> </div> <?php $this->endWidget(); ?> </div><!-- form --> </div>
if($data['status']==1) $style='completed'; else $style=''; ?> <div class="letter"> <span onclick="letterSpoiler(this)"> <?php echo CHtml::ajaxLink( "<div class='".$style."'><span class='addressee'>".$sender->email."</span><span class='theme'>".$data['theme']."</span><span class='timeletter'>".$data['date']."</span></div>", Yii::app()->createUrl('letters/StatusUpdate', array('id'=>$data['id'])), array( 'update'=>'#statusLetter' ) ); ?> </span> <div class="spoilerBody"> <img src="<?php echo StaticFilesHelper::createPath('image', 'avatars', $sender->avatar); ?>"/> <table class="letterinfo"> <tr> <td> <div><?php echo $data['date'] ?></div> </td> </tr> <tr> <td> <div><?php echo $sender->email ?></div> </td> </tr> <tr> <td> <div>Тема: <?php echo $data['theme'] ?></div> </td>