当前位置: 首页>>代码示例>>PHP>>正文


PHP CHtml::mailto方法代码示例

本文整理汇总了PHP中CHtml::mailto方法的典型用法代码示例。如果您正苦于以下问题:PHP CHtml::mailto方法的具体用法?PHP CHtml::mailto怎么用?PHP CHtml::mailto使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CHtml的用法示例。


在下文中一共展示了CHtml::mailto方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getContact

    public function getContact()
    {
        $html = '';
        // CHtml::tag('strong', array(), 'Kontakt');
        $info = $this->infoFields;
        foreach ($info as $k => $v) {
            $value = '';
            $value = $this->{$k};
            if ($value) {
                if ($k == 'name') {
                    $value = $this->getTeamLink() . $value;
                }
                if ($k == 'web') {
                    $value = CHtml::link(str_replace(['http://', 'https://'], '', $value), $value, array('target' => '_blank'));
                }
                if ($k == 'email') {
                    $value = CHtml::mailto($value, $value . '?subject=Kontakt%20vom%20Balance&body=Hallo%20' . str_replace('
					', '%20', $this->name) . ',', array('target' => '_blank'));
                }
            }
            $info[$k] = array($v, $value);
        }
        foreach ($info as $k => $v) {
            if (!$v[1]) {
                continue;
            }
            if ($v[0]) {
                $html .= $v[0] . ': ';
            }
            $html .= $v[1];
            $html .= CHtml::tag('br');
        }
        return $html;
    }
开发者ID:balrok,项目名称:aiajaya,代码行数:34,代码来源:Team.php

示例2: formatInfo

 public static function formatInfo($info)
 {
     //[{name}{mail@abc.com}][name]
     if (preg_match_all('{(\\[([^\\]]+)\\])}', $info, $matches)) {
         $info = array();
         foreach ($matches[2] as $value) {
             if (preg_match('{\\{([^\\}]+)\\}\\{([^\\}]+)\\}}', $value, $match)) {
                 $info[] = CHtml::mailto(Html::fontAwesome('envelope', 'a') . $match[1], $match[2]);
             } else {
                 $info[] = $value;
             }
         }
         return implode(Yii::t('common', ', '), $info);
     } else {
         return $info;
     }
 }
开发者ID:sunshy360,项目名称:cubingchina,代码行数:17,代码来源:OldCompetition.php

示例3: array

<div class="content-wrapper col-lg-12">
  <div class="alert alert-danger">
    <?php 
echo Yii::t('common', 'Your account was suspended. Please contact the {administrator} if you have any question.', array('{administrator}' => CHtml::mailto(Yii::t('common', 'administrator'), Yii::app()->params->adminEmail)));
?>
  </div>
</div>
开发者ID:sunshy360,项目名称:cubingchina,代码行数:7,代码来源:banned.php

示例4: formatEmail

 /**
  * Formats the value as a mailto link.
  * @param mixed $value the value to be formatted
  * @return string the formatted result
  */
 public function formatEmail($value)
 {
     return CHtml::mailto($value);
 }
开发者ID:salem-dev-acc,项目名称:yiiapp,代码行数:9,代码来源:CFormatter.php

示例5:

</td>
        <td><b><?php 
echo CHtml::mailto(CHtml::encode($model->emailAddress));
?>
</b></td>
    </tr>
    <tr class='full-profile-details-row' <?php 
echo !$isMyProfile || $fullProfileInfo ? '' : 'style="display:none;"';
?>
>
        <td class="label"><?php 
echo $attributeLabels['googleId'];
?>
</td>
        <td><b><?php 
echo CHtml::mailto(CHtml::encode($model->googleId));
?>
</b></td>
    </tr>
    <tr class='full-profile-details-row' <?php 
echo !$isMyProfile || $fullProfileInfo ? '' : 'style="display:none;"';
?>
>
        <td class="label"><?php 
echo Yii::t('profile', 'Signature');
?>
</td>
        <td><div style="height:50px;width:0px;float:left;"></div><?php 
echo $model->getSignature(true);
?>
</td>
开发者ID:tymiles003,项目名称:X2CRM,代码行数:31,代码来源:_profileInfo.php

示例6:

?>
" class="collapse out">
    <br/>
    <?php 
echo $module->description;
?>
<br/><br/>
    <table class="table">
        <tr>
            <td>
                <?php 
echo Yii::t('YupeModule.yupe', 'Author');
?>
:
                <?php 
echo CHtml::mailto($module->author, $module->authorEmail);
?>
            </td>
        </tr>
        <tr>
            <td>
                <?php 
echo Yii::t('YupeModule.yupe', 'Web-site');
?>
:
                <?php 
echo CHtml::link($module->url, $module->url, ['target' => '_blank']);
?>
            </td>
        </tr>
    </table>
开发者ID:alextravin,项目名称:yupe,代码行数:31,代码来源:moduleinfowidget.php

示例7: formatEmail

 /**
  * Override to allow htmlOptions to be passed
  * (non-PHPdoc)
  * @see CFormatter::formatEmail()
  */
 public function formatEmail($value, $email = '', $htmlOptions = array())
 {
     return CHtml::mailto($value, $email, $htmlOptions);
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:9,代码来源:Formatter.php

示例8:

<div id="container">
  <div id="header">
    <h1><?php 
echo CHtml::link(CHtml::encode(Yii::app()->params['title']), Yii::app()->homeUrl);
?>
</h1>
  </div><!-- header -->
  <div id="content">
    <h2>Page Not Found</h2>
    <p>
    The page you are looking for cannot be found. Please make sure you entered a correct URL.
    </p>
    <p>
    If you think this is a server error, please contact
    <?php 
echo CHtml::mailto(Yii::app()->params['adminEmail']);
?>
.
    </p>
    <p>
    <?php 
echo CHtml::link('Return to homepage', Yii::app()->homeUrl);
?>
    </p>
  </div><!-- content -->

  <br class="clearfloat" />

  <div id="footer">
    <p><?php 
echo Yii::app()->params['copyrightInfo'];
开发者ID:GowthamThangamani,项目名称:yii-blogdemo-enhanced,代码行数:31,代码来源:error404.php

示例9: getSignature

 public function getSignature($html = false)
 {
     $adminRule = Yii::app()->settings->emailUseSignature;
     $userRule = $this->emailUseSignature;
     $signature = '';
     switch ($adminRule) {
         case 'admin':
             $signature = Yii::app()->settings->emailSignature;
             break;
         case 'user':
             switch ($userRule) {
                 case 'user':
                     $signature = $signature = $this->emailSignature;
                     break;
                 case 'admin':
                     Yii::app()->settings->emailSignature;
                     break;
                 case 'group':
                     $signature == '';
                     break;
                 default:
                     $signature == '';
             }
             break;
         case 'group':
             $signature == '';
             break;
         default:
             $signature == '';
     }
     $signature = preg_replace(array('/\\{first\\}/', '/\\{last\\}/', '/\\{phone\\}/', '/\\{group\\}/', '/\\{email\\}/'), array($this->user->firstName, $this->user->lastName, $this->officePhone, '', $html ? CHtml::mailto($this->emailAddress) : $this->emailAddress), $signature);
     if ($html) {
         $signature = Formatter::convertLineBreaks($signature);
     }
     return $signature;
 }
开发者ID:keyeMyria,项目名称:CRM,代码行数:36,代码来源:Profile.php

示例10: foreach

else
  echo 'Телефон: ';
foreach($phones as $k=>$phon){
	$det_tel = ($detect->isMobile()) ? 'tel:' : 'callto:';
	$phone = CHtml::link('<span itemprop="telephone">'.$phon->phone.'</span>',$det_tel.$phon->clear_phone); 	
    echo $phone.' <span class="org_phone_description">'.$phon->description.'</span><br>';

}
?>
 </p>
<?php 
}


if($model->email){ 
	echo CHtml::tag('p', array('class'=>'org_email'), CHtml::mailto($model->email, $model->email,array('itemprop'=>"email")));
} 
if($model->orgsHttp || $model->vkontakte || $model->facebook  || $model->twitter || $model->instagram || $model->youtube){ ?>

<?php
if($model->orgsHttp){

 echo '<p class="org_site">';
  $site = '';
  foreach ($model->orgsHttp as $key => $st) {
  		$linktext = $st->description?$st->description:Orgs::parseUrlShow($st->site);
  		$sitelink = CHtml::link($linktext, $st->site, array('loc'=>Yii::app()->createAbsoluteUrl('/redirect.php'),'target'=>'_blank','rel'=>'nofollow'));
   		$site .= CHtml::tag('span', array(), $st->description?$sitelink:$sitelink.' <span class="org_phone_description">Официальный сайт</span>').'<br>';
  }
  if($site){
    $site = rtrim($site, '<br>');
开发者ID:Aplay,项目名称:Fastreview_site,代码行数:31,代码来源:itemnocity.php

示例11: array

<div class="listitem">
	<div class="avatar">
		<?php 
$this->widget('application.extensions.VGGravatarWidget.VGGravatarWidget', array('email' => CHtml::encode($data->Users->user_email), 'hashed' => false, 'default' => 'http://' . $_SERVER['SERVER_NAME'] . Yii::app()->request->baseUrl . '/images/bg-avatar.png', 'size' => 60, 'redirect' => Yii::app()->createUrl('clients/view', array('id' => $data->client_id)), 'rating' => 'PG', 'htmlOptions' => array('class' => 'borderCaption', 'alt' => 'Gravatar Icon')));
?>
	</div>
	<div class="people-detail">
		<h5><?php 
echo CHtml::encode($data->Users->user_name) . " " . CHtml::encode($data->Users->user_lastname);
?>
</h5>
		<?php 
echo CHtml::mailto(CHtml::encode($data->Users->user_email), CHtml::encode($data->Users->user_email));
?>
<br />
		<?php 
echo CHtml::encode($data->getAttributeLabel('Users.user_active')) . ": ";
?>
		<?php 
echo $data->Users->user_active == 1 ? Yii::t('site', 'yes') : Yii::t('site', 'no');
?>
<br />
		<div style="width:100%; text-align:right;"><?php 
echo CHtml::link(Yii::t('clients', 'ViewDetails'), array('view', 'id' => $data->client_id));
?>
</div>
	</div>
</div>
开发者ID:lanzelotik,项目名称:celestic-community,代码行数:28,代码来源:_view.php

示例12: implode

		<?php 
for ($i = 0; $i < count($model->categorias); $i++) {
    if ($i < 3) {
        $categorias[] = $model->categorias[$i]->t('nome');
    }
}
?>
		<h5><i><?php 
echo implode(', ', $categorias);
?>
</i></h5>
		<?php 
if (!Yii::app()->user->isGuest) {
    ?>
			<h6><i><?php 
    echo CHtml::mailto($model->email, $model->email, array('target' => '_blank'));
    ?>
</i></h6>
		<?php 
}
?>
		<?php 
if ($model->lattes != null) {
    ?>
			<h6><i><a href="<?php 
    echo $model->lattes;
    ?>
" target="_blank"><?php 
    echo Yii::t('Pessoa', 'lattes');
    ?>
</a></i></h6>
开发者ID:elikristina,项目名称:portalcegov,代码行数:31,代码来源:view.php

示例13: getSignature

 public function getSignature($html = false)
 {
     $adminRule = Yii::app()->params->admin->emailUseSignature;
     $userRule = $this->emailUseSignature;
     $userModel = CActiveRecord::model('User')->findByPk($this->id);
     $signature = '';
     switch ($adminRule) {
         case 'admin':
             $signature = Yii::app()->params->admin->emailSignature;
             break;
         case 'user':
             switch ($userRule) {
                 case 'user':
                     $signature = $signature = $this->emailSignature;
                     break;
                 case 'admin':
                     Yii::app()->params->admin->emailSignature;
                     break;
                 case 'group':
                     $signature == '';
                     break;
                 default:
                     $signature == '';
             }
             break;
         case 'group':
             $signature == '';
             break;
         default:
             $signature == '';
     }
     $signature = preg_replace(array('/\\{first\\}/', '/\\{last\\}/', '/\\{phone\\}/', '/\\{group\\}/', '/\\{email\\}/'), array($userModel->firstName, $userModel->lastName, $this->officePhone, '', $html ? CHtml::mailto($this->emailAddress) : $this->emailAddress), $signature);
     if ($html) {
         $signature = x2base::convertLineBreaks($signature);
     }
     // $signature = '<span style="color:grey;">' . x2base::convertLineBreaks($signature) . '</span>';
     return $signature;
 }
开发者ID:netconstructor,项目名称:X2Engine,代码行数:38,代码来源:ProfileChild.php

示例14: array

<div class="col-lg-8 col-lg-offset-2 col-xs-12">
  <div class="panel panel-theme">
    <div class="panel-heading">
        <h3 class="panel-title"><?php 
echo Yii::t('common', 'Activate Account');
?>
</h3>
    </div>
    <div class="panel-body">
      <?php 
$form = $this->beginWidget('ActiveForm', array('id' => 'forget-password-form', 'htmlOptions' => array('role' => 'form')));
?>
        <?php 
echo Html::formGroup($model, 'email', array(), $form->labelEx($model, 'email'), Html::activeTextField($model, 'email', array('readonly' => true)), Yii::t('common', 'If you have got problems in activating your account, please contact the administrator via {email}.', array('{email}' => CHtml::mailto(Html::fontAwesome('envelope', 'a') . Yii::app()->params->adminEmail, Yii::app()->params->adminEmail))));
?>
        <?php 
echo Html::formGroup($model, 'verifyCode', array(), $form->labelEx($model, 'verifyCode'), Html::activeTextField($model, 'verifyCode'), $this->widget('CCaptcha', array('clickableImage' => true, 'showRefreshButton' => false), true), $form->error($model, 'verifyCode', array('class' => 'text-danger')));
?>
        <button type="submit" class="btn btn-theme"><?php 
echo Yii::t('common', 'Submit');
?>
</button>
      <?php 
$this->endWidget();
?>
    </div>
  </div>
</div>
开发者ID:sunshy360,项目名称:cubingchina,代码行数:28,代码来源:reactivate.php

示例15: array

<?php

$siteName = Yii::app()->getModule('yupe')->siteName;
?>
<html>

<head>
    <title>Новый пользователь на сайте "<?php 
echo CHtml::encode($siteName);
?>
"</title>
</head>

<body>
    <p>Информация о пользователе:</p>
    <?php 
$this->widget('zii.widgets.CDetailView', array('data' => $user, 'attributes' => array('profile.fio', array('name' => 'email', 'type' => 'raw', 'value' => CHtml::mailto($user->email)), array('name' => 'profile.gender', 'value' => $user->profile->getGender()), array('name' => 'profile.organization', 'value' => $user->profile->organization), array('name' => 'profile.post', 'value' => $user->profile->post), array('name' => 'registration_date', 'value' => date("d.m.Y H:i:s"))), 'itemTemplate' => "<p><b>{label}:</b> {value}</p>\n", 'tagName' => null));
?>

    <p>&nbsp;</p>
    <?php 
$this->widget("application.modules.contentblock.widgets.ContentBlockWidget", array("code" => "admin_sign", "silent" => true));
?>
</body>

</html>
开发者ID:kuzmina-mariya,项目名称:gallery,代码行数:26,代码来源:newUserEmail.php


注:本文中的CHtml::mailto方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。