Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
index.php
1 <?php
2 /**
3  *
4  */
5 //TODO: remove
6 //Yii::app()->clientScript->disableRegisterFiles = false;
7 //Yii::app()->clientScript->registerCssFile($this->module->assetsUrl . '/css/mailsending.css');
8 //Yii::app()->clientScript->registerScriptFile('/Content.Node/files/js/jquery-1.7.1.min.js');
9 ?>
10 <!DOCTYPE html>
11 
12 <!--[if IE 7]> <html class="ie7 no-js" lang="en"> <![endif]-->
13 <!--[if lte IE 8]> <html class="ie8 no-js" lang="en"> <![endif]-->
14 <!--[if (gte IE 9)|!(IE)]><!--> <html class="not-ie no-js" lang="en"> <!--<![endif]-->
15 
16 <!-- genеrаtеd bу Gentics Pоrtаl.Nоde --><head>
17 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
18 <meta http-equiv="content-language" content="en" />
19 
20 <!-- moved the 2 libs up in DOM because portal inserts assets below css -->
21 <script src="/Content.Node/files/js/jquery-1.7.1.min.js"></script>
22 
23 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
24 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
25 
26 <link rel="stylesheet" type="text/css" href="/Content.Node/files/css/jquery-ui.1.8.17.css" media="screen" />
27 <link rel="stylesheet" type="text/css" href="/Content.Node/files/css/styles.v5.css" media="screen,print" />
28 <link rel="stylesheet" type="text/css" href="/Content.Node/files/css/custom.portal.css" media="screen,print" />
29 <link rel="stylesheet" type="text/css" href="/Content.Node/files/css/print.css" media="print" />
30 <script type="text/javascript" src="/Content.Node/files/js/respond1.min.js"></script>
31 <script type="text/javascript" src="/Content.Node/files/js/jquery.easing-1.3.min.js"></script>
32 <script type="text/javascript" src="/Content.Node/files/js/jquery.cycle.all.min.js"></script>
33 <script type="text/javascript" src="/Content.Node/files/js/jquery.touchSwipe.min.js"></script>
34 <script type="text/javascript" src="/Content.Node/files/js/jquery.json.js"></script>
35 <script type="text/javascript" src="/Content.Node/files/js/custom.js"></script>
36 <script type="text/javascript" src="/Content.Node/files/js/custom.portal.js"></script>
37 <title><?php echo SocialModule::t('Send a link to a friend'); ?></title>
38 
39 <meta name="description" content="Send a link to a friend" />
40 <meta name="author" content="Node Admin" />
41 
42 <!--[if !lte IE 6]><!-->
43 <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,300,800,700,400italic|PT+Serif:400,400italic" />
44 <!--<![endif]-->
45 
46 <!--[if lte IE 6]>
47 <link rel="stylesheet" href="/Content.Node/files/css/ie6.1.1.css" media="screen, projection">
48 <![endif]-->
49 
50 <!-- HTML5 Shiv + detect touch events -->
51 <script src="/Content.Node/files/js/modernizr.custom.js"></script>
52 
53 </head>
54 <body>
55 
56 <!--noindexstart-->
57 <header id="headerx" class="container clearfix">
58 
59 <div class="social-mailsender">
60 
61  <?php $form = $this->beginWidget('CActiveForm', array('method' => 'post'))?>
62 
63  <?php echo $form->errorSummary($model, null, null, array('class'=>'error')); ?>
64 
65  <div id="title"><h1><?php echo SocialModule::t('SEND A LINK'); ?></h1></div>
66 
67  <?php if (($message = Yii::app()->user->getFlash('social-mailing'))): ?>
68  <div class="success">
69  <?php echo $message ?>
70  </div>
71  <?php endif ?>
72 
73  <div class="row">
74  <?php echo $form->labelEx($model, 'your_name', array('class' => 'col1'))?>
75  <span class="col2">
76  <?php echo $form->textField($model, 'your_name', array('class' => 'input', 'size' => 20, 'tabindex' => 1))?>
77  </span>
78  </div>
79  <div class="row">
80  <?php echo $form->labelEx($model, 'your_email', array('class' => 'col1'))?>
81  <span class="col2">
82  <?php echo $form->textField($model, 'your_email', array('class' => 'input', 'size' => 20, 'tabindex' => 2))?>
83  </span>
84  </div>
85  <div class="row">
86  <?php echo $form->labelEx($model, 'friends_name', array('class' => 'col1'))?>
87  <span class="col2">
88  <?php echo $form->textField($model, 'friends_name', array('class' => 'input', 'size' => 20, 'tabindex' => 3))?>
89  </span>
90  </div>
91  <div class="row">
92  <?php echo $form->labelEx($model, 'friends_email', array('class' => 'col1'))?>
93  <span class="col2">
94  <?php echo $form->textField($model, 'friends_email', array('class' => 'input', 'size' => 20, 'tabindex' => 4))?>
95  </span>
96  </div>
97 
98  <div class="row">
99  <?php echo $form->labelEx($model, 'comment', array('class' => 'col1comment'))?>
100  <span class="col2comment">
101  <?php echo $form->textArea($model, 'comment', array('class' => 'input', 'cols' => 50, 'rows' => 6, 'tabindex' => 5))?>
102  </span>
103  </div>
104 
105  <div class="row submit">
106  <input type="submit" name="submit" value="<?php echo SocialModule::t('Send a link to a friend'); ?>" />
107  </div>
108 
109  <!--<?php echo SocialModule::t('Note: This service is powered by Gentics. No data will be saved, but only as an e-mail to the address you have passed!'); ?>-->
110  <br/><br/>
111  <span style="text-align:right">
112  <a href="#" onClick="javascript:window.close();">[<?php echo SocialModule::t('Close'); ?>]</a>
113  </span>
114  <?php $this->endWidget() ?>
115  <script type="text/javascript">
116  jQuery(function () {
117  $('.row label').removeClass('error');
118  $('.row input').removeClass('error');
119  });
120  </script>
121 </div>
122 
123 </body>
124 </html>