~horux-dev/horux-webcli/thfo

« back to all changes in this revision

Viewing changes to protected/views/site/site/site.php

  • Committer: Thierry Forchelet
  • Date: 2011-02-25 13:30:15 UTC
  • Revision ID: thierry.forchelet@letux.ch-20110225133015-zxyj9w7sqv8ly971
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php Yii::import('application.extensions.qtip.QTip'); ?>
 
2
 
 
3
<?php
 
4
 
 
5
$opts = array(
 
6
    'style' => array(
 
7
        'name' => 'cream',
 
8
        'type' => true,
 
9
        'padding' => '7px 13px',
 
10
        'tip'=>array(
 
11
                'corner'=> 'bottomLeft',
 
12
                'size'=> array (
 
13
                    'x'=> 20, // Be careful that the x and y values refer to coordinates on screen, not height or width.
 
14
                    'y'=> 8 // Depending on which corner your tooltip is at, x and y could mean either height or width!
 
15
                )
 
16
 
 
17
            )
 
18
        ),
 
19
     'effect' => array (
 
20
         'type'=>'fade',
 
21
         'length'=>100
 
22
     ),
 
23
    'position'=>array (
 
24
         'corner'=>array (
 
25
            'target'=> 'topRight',
 
26
            'tooltip'=> 'bottomLeft'
 
27
         )
 
28
      ),
 
29
 
 
30
    );
 
31
 
 
32
QTip::qtip('label[title]', $opts);
 
33
 
 
34
?>
 
35
 
 
36
 
 
37
 
 
38
<div id="content-box">
 
39
    <div class="border">
 
40
        <div class="padding">
 
41
 
 
42
            <?php
 
43
                $this->widget('application.extensions.widgets.toolBar.ToolBar', array(
 
44
                    'title' => Yii::t('app','Site'),
 
45
                    'icon' => 'header icon-48-site',
 
46
                    'actionButton' => array ('help'=>array('visible'=>true),
 
47
                                             'save'=>array('visible'=>true, 'url'=>'site/site', 'formWithFile'=>true),
 
48
                                             'close'=>array('visible'=>true, 'url'=>'site/controlPanel'),
 
49
                                             )
 
50
                ));
 
51
            ?>
 
52
 
 
53
            <?php
 
54
 
 
55
                $this->widget('application.extensions.widgets.messageInfo.MessageInfo', array('message'=>$message, 'isOk'=>$messageResult));
 
56
 
 
57
            ?>
 
58
 
 
59
            <div id="element-box">
 
60
 
 
61
                <div class="t">
 
62
                    <div class="t">
 
63
                        <div class="t"></div>
 
64
 
 
65
                    </div>
 
66
                </div>
 
67
                <div class="m">
 
68
 
 
69
                    <?php $form=$this->beginWidget('CActiveForm', array(
 
70
                            'id'=>'adminform',
 
71
                            'enableAjaxValidation'=>false,
 
72
                            'htmlOptions'=>array('enctype'=>'multipart/form-data'))); ?>
 
73
 
 
74
                    <fieldset class="adminform">
 
75
                        <legend><?php echo Yii::t('app', 'Parameter') ?></legend>
 
76
                        <table class="admintable" cellspacing="1">
 
77
                            <tbody>
 
78
 
 
79
                                <tr>
 
80
                                    <td valign="top" class="key">
 
81
                                        <?php echo $form->labelEx($model,'name', array( 'title'=>Yii::t("app", "Enter the name for the site"))); ?>
 
82
                                    </td>
 
83
                                    <td>
 
84
                                        <?php echo $form->textField($model,'name'); ?>
 
85
                                        <?php echo $form->error($model,'name'); ?>
 
86
                                    </td>
 
87
                                </tr>
 
88
 
 
89
                                <tr>
 
90
                                    <td valign="top" class="key">
 
91
                                        <?php echo $form->label($model,'street', array( 'title'=>Yii::t("app", "Enter the street"))); ?>
 
92
                                    </td>
 
93
                                    <td>
 
94
                                        <?php echo $form->textField($model,'street'); ?>
 
95
                                        <?php echo $form->error($model,'street'); ?>
 
96
                                    </td>
 
97
                                </tr>
 
98
 
 
99
                                <tr>
 
100
                                    <td valign="top" class="key">
 
101
                                        <?php echo $form->label($model,'npa', array( 'title'=>Yii::t("app", "Enter the zip number"))); ?>
 
102
                                    </td>
 
103
                                    <td>
 
104
                                        <?php echo $form->textField($model,'npa'); ?>
 
105
                                        <?php echo $form->error($model,'npa'); ?>
 
106
                                    </td>
 
107
                                </tr>
 
108
 
 
109
                                <tr>
 
110
                                    <td valign="top" class="key">
 
111
                                        <?php echo $form->label($model,'city', array( 'title'=>Yii::t("app", "Enter the city"))); ?>
 
112
                                    </td>
 
113
                                    <td>
 
114
                                        <?php echo $form->textField($model,'city'); ?>
 
115
                                        <?php echo $form->error($model,'city'); ?>
 
116
                                    </td>
 
117
                                </tr>
 
118
 
 
119
                                <tr>
 
120
                                    <td valign="top" class="key">
 
121
                                        <?php echo $form->label($model,'phone', array( 'title'=>Yii::t("app", "Enter the phone number of the site"))); ?>
 
122
                                    </td>
 
123
                                    <td>
 
124
                                        <?php echo $form->textField($model,'phone'); ?>
 
125
                                        <?php echo $form->error($model,'phone'); ?>
 
126
                                    </td>
 
127
                                </tr>
 
128
 
 
129
                                <tr>
 
130
                                    <td valign="top" class="key">
 
131
                                        <?php echo $form->label($model,'fax', array( 'title'=>Yii::t("app", "Enter the fax number of the site"))); ?>
 
132
                                    </td>
 
133
                                    <td>
 
134
                                        <?php echo $form->textField($model,'fax'); ?>
 
135
                                        <?php echo $form->error($model,'fax'); ?>
 
136
                                    </td>
 
137
                                </tr>
 
138
 
 
139
                                <tr>
 
140
                                    <td valign="top" class="key">
 
141
                                        <?php echo $form->label($model,'email', array( 'title'=>Yii::t("app", "Enter the email of the site"))); ?>
 
142
                                    </td>
 
143
                                    <td>
 
144
                                        <?php echo $form->textField($model,'email'); ?>
 
145
                                        <?php echo $form->error($model,'email'); ?>
 
146
                                    </td>
 
147
                                </tr>
 
148
 
 
149
                                <tr>
 
150
                                    <td valign="top" class="key">
 
151
                                        <?php echo $form->label($model,'website', array( 'title'=>Yii::t("app", "Enter the web site of the site"))); ?>
 
152
                                    </td>
 
153
                                    <td>
 
154
                                        <?php echo $form->textField($model,'website'); ?>
 
155
                                        <?php echo $form->error($model,'website'); ?>
 
156
                                    </td>
 
157
                                </tr>
 
158
 
 
159
                                <tr>
 
160
                                    <td valign="top" class="key">
 
161
                                        <?php echo $form->label($model,'logo', array( 'title'=>Yii::t("app", "Add the logo of the site"))); ?>
 
162
                                    </td>
 
163
                                    <td>
 
164
                                        <?php echo $form->fileField($model,'logo'); ?>
 
165
                                        <?php echo $form->error($model,'logo'); ?>
 
166
                                        <?php if($model->logo != '') {
 
167
                                            echo "<br/>".CHtml::image('pictures/'.$model->logo, 'logo');
 
168
                                        } ?>
 
169
                                    </td>
 
170
                                </tr>
 
171
 
 
172
                            </tbody>
 
173
                        </table>
 
174
                    </fieldset>
 
175
                    <fieldset class="adminform">
 
176
                        <legend><?php echo Yii::t('app', 'Commercial') ?></legend>
 
177
                        <table class="admintable" cellspacing="1">
 
178
                            <tbody>
 
179
 
 
180
                                <tr>
 
181
                                    <td valign="top" class="key">
 
182
                                        <?php echo $form->label($model,'tva_number', array( 'title'=>Yii::t("app", "Enter your VAT number"))); ?>
 
183
                                    </td>
 
184
                                    <td>
 
185
                                        <?php echo $form->textField($model,'tva_number'); ?>
 
186
                                        <?php echo $form->error($model,'tva_number'); ?>
 
187
                                    </td>
 
188
                                </tr>
 
189
                                <tr>
 
190
                                    <td valign="top" class="key">
 
191
                                        <?php echo $form->label($model,'tva', array( 'title'=>Yii::t("app", "Enter the VAT value"))); ?>
 
192
                                    </td>
 
193
                                    <td>
 
194
                                        <?php echo $form->textField($model,'tva'); ?>
 
195
                                        <?php echo $form->error($model,'tva'); ?>
 
196
                                    </td>
 
197
                                </tr>
 
198
 
 
199
                                <tr>
 
200
                                    <td valign="top" class="key">
 
201
                                        <?php echo $form->label($model,'devise', array( 'title'=>Yii::t("app", "Enter your currency"))); ?>
 
202
                                    </td>
 
203
                                    <td>
 
204
                                        <?php echo $form->textField($model,'devise'); ?>
 
205
                                        <?php echo $form->error($model,'devise'); ?>
 
206
                                    </td>
 
207
                                </tr>
 
208
 
 
209
                                <?php $this->endWidget(); ?>
 
210
 
 
211
                            </tbody>
 
212
                        </table>
 
213
                    </fieldset>
 
214
 
 
215
                </div>
 
216
                <div class="b">
 
217
                    <div class="b">
 
218
                        <div class="b"></div>
 
219
                    </div>
 
220
 
 
221
                </div>
 
222
            </div> <!-- end class element-box -->
 
223
        </div>
 
224
    </div>
 
225
</div>