Пример #1
0
			</tr><tr>
				<td class="td-pr"><?php 
echo label_tag(lang('zipcode'), $genid . 'clientFormZipcode');
?>
</td>
				<td><?php 
echo text_field('company[zipcode]', array_var($company_data, 'zipcode'), array('id' => $genid . 'clientFormZipcode', 'tabindex' => '50', 'maxlength' => 30));
?>
</td>
			</tr><tr>
				<td class="td-pr"><?php 
echo label_tag(lang('country'), $genid . 'clientFormCountry');
?>
</td>
				<td><?php 
echo select_country_widget('company[country]', array_var($company_data, 'country'), array('id' => $genid . 'clientFormCountry', 'tabindex' => '60'));
?>
</td>
			</tr>
			</table>
			</td><td>
			<table style="width:100%">
			<tr>
				<td class="td-pr"><?php 
echo label_tag(lang('phone'), $genid . 'clientFormPhoneNumber');
?>
 </td>
				<td><?php 
echo text_field('company[phone_number]', array_var($company_data, 'phone_number'), array('id' => $genid . 'clientFormPhoneNumber', 'tabindex' => '70', 'maxlength' => 50));
?>
</td>
Пример #2
0
			</tr><tr>
				<td class="td-pr"><?php 
echo label_tag(lang('zipcode'), $genid . 'profileFormOZipcode');
?>
</td>
				<td><?php 
echo text_field('contact[o_zipcode]', array_var($contact_data, 'o_zipcode'), array('id' => $genid . 'profileFormOZipcode', 'tabindex' => '235', 'maxlength' => 50));
?>
</td>
			</tr><tr>
				<td class="td-pr"><?php 
echo label_tag(lang('country'), $genid . 'profileFormOCountry');
?>
</td>
				<td><?php 
echo select_country_widget('contact[o_country]', array_var($contact_data, 'o_country'), array('id' => $genid . 'profileFormOCountry', 'tabindex' => '240', 'maxlength' => 50));
?>
</td>
			</tr><tr>
				<td class="td-pr"><?php 
echo label_tag(lang('website'), $genid . 'profileFormOWebPage');
?>
</td>
				<td><?php 
echo text_field('contact[o_web_page]', array_var($contact_data, 'o_web_page'), array('id' => $genid . 'profileFormOWebPage', 'tabindex' => '245'));
?>
</td>
			</tr>
			</table>
			</td>
			<td>
Пример #3
0
?>
_emails_container"></div>
            <div class="clear"></div>
            <div style="margin:5px 0 10px 200px;">
            	<a href="#" onclick="og.addNewEmailInput('<?php 
echo $genid . $id_prefix;
?>
_emails_container')" class="coViewAction ico-add"><?php 
echo lang('add new email address');
?>
</a>
	            </div>
	        </div>
            
            <div style="display:none;"><?php 
echo select_country_widget('country', '', array('id' => 'template_select_country'));
?>
</div>
            <div class="input-container">
	            <div><?php 
echo label_tag(lang('address'));
?>
</div>
            <div style="float:left;" id="<?php 
echo $genid . $id_prefix;
?>
_addresses_container"></div>
            <div class="clear"></div>
            <div style="margin:5px 0 10px 200px;">
            	<a href="#" onclick="og.addNewAddressInput('<?php 
echo $genid . $id_prefix;
Пример #4
0
    
    <div>
      <?php 
echo label_tag(lang('zipcode'), 'clientFormZipcode');
?>
      <?php 
echo text_field('company[zipcode]', array_var($company_data, 'zipcode'), array('id' => 'clientFormZipcode'));
?>
    </div>
    
    <div>
      <?php 
echo label_tag(lang('country'), 'clientFormCountry');
?>
      <?php 
echo select_country_widget('company[country]', array_var($company_data, 'country'), array('id' => 'clientFormCountry'));
?>
    </div>
    
  </fieldset>
  
<?php 
if (!$company->isNew() && $company->isOwner()) {
    ?>
  <?php 
    echo submit_button(lang('edit company'));
} else {
    ?>
  <?php 
    echo submit_button($company->isNew() ? lang('add client') : lang('edit company'));
}
             $rows++;
         }
     }
     $html .= '</tr></table>';
     $html .= '<a href="#" id="' . $genid . '-add-row-' . $customProp->getId() . '" tabindex="' . ($startTi + $ti + 50 * count($columnNames)) . '" onclick="og.addTableCustomPropertyRow(this.parentNode, true, null, ' . count($columnNames) . ', ' . ($startTi + $ti) . ', ' . $customProp->getId() . ');return false;">' . lang("add") . '</a></div>';
     if ($rows == 0) {
         // create first empty row
         $html .= '<script>if (!Ext.isIE) document.getElementById("' . $genid . '-add-row-' . $customProp->getId() . '").onclick();</script>';
     }
     $ti += 50 * count($columnNames);
     $print_table_functions = true;
     echo $html;
     break;
 case 'address':
     $html = '<div id="' . $genid . 'addresscontainer-cp' . $customProp->getId() . '" class="address-input-container custom-property"></div>';
     $html .= "<div style='display:none;'>" . select_country_widget('template_country', '', array('id' => 'template_select_country')) . "</div>";
     $html .= "<script>\$(function(){";
     $all_address_types = AddressTypes::getAllAddressTypesInfo();
     $html .= "og.address_types = Ext.util.JSON.decode('" . json_encode($all_address_types) . "');";
     $values = CustomPropertyValues::getCustomPropertyValues($_custom_properties_object->getId(), $customProp->getId());
     if (is_array($values) && count($values) > 0) {
         foreach ($values as $val) {
             $values = str_replace("\\|", "%%_PIPE_%%", $val->getValue());
             $exploded = explode("|", $values);
             foreach ($exploded as &$v) {
                 $v = str_replace("%%_PIPE_%%", "|", $v);
                 $v = escape_character($v);
             }
             if (count($exploded) > 0) {
                 $address_type = array_var($exploded, 0, '');
                 $street = array_var($exploded, 1, '');