Ejemplo n.º 1
0
></td><td style='border:0;padding:2px;padding-left:5px;margin:0'><label for='RegistredUsersOptions-1' style='border:0;margin:0;padding:0'><?php 
echo EasyContactFormsT::get('CF_NoActions');
?>
</label></td></tr><tr style='border:0;padding:0;margin:0;display:<?php 
echo $druo;
?>
'><td style='border:0;margin:0;padding:2px'><input type='radio' id='RegistredUsersOptions-2' name='RegistredUsersOptions' class='ufo-id-link' style='border:0;margin:0;padding:0' onchange='if(this.checked){jQuery("#"+AppMan.Utils.siblingId(this, "RegistredUsersOptions")).val("showfill")}' <?php 
echo $RegistredUsersOptions == 'showfill' ? ' checked' : '';
?>
></td><td style='border:0;padding:2px;padding-left:5px;margin:0'><label for='RegistredUsersOptions-2' style='border:0;margin:0;padding:0'><?php 
echo EasyContactFormsT::get('CF_FillWithRegiseredUserData');
?>
</label></td></tr><tr style='border:0;padding:0;margin:0;display:<?php 
echo $druo;
?>
'><td style='border:0;margin:0;padding:2px'><input type='radio' id='RegistredUsersOptions-3' name='RegistredUsersOptions' class='ufo-id-link' style='border:0;margin:0;padding:0' onchange='if(this.checked){jQuery("#"+AppMan.Utils.siblingId(this, "RegistredUsersOptions")).val("hidefilled")}' <?php 
echo $RegistredUsersOptions == 'hidefilled' ? ' checked' : '';
?>
></td><td style='border:0;padding:2px;padding-left:5px;margin:0'><label for='RegistredUsersOptions-3' style='border:0;margin:0;padding:0'><?php 
echo EasyContactFormsT::get('CF_HideFromRegistredUsersWhenFilled');
?>
</label></td></tr></table></div><div><label for='LinkToAppField'><?php 
echo EasyContactFormsT::get('CF_LinkToAppField');
?>
<span id='LinkToAppFieldHin' class='ufo-settingsform-label-hint ufo-label-hint ufo-id-link'>[<a>?</a>]</span></label><input type='hidden' id='LinkToAppFieldHint' value='<?php 
echo EasyContactFormsT::get('CF_Hint_LinkToAppField');
?>
' class='ufo-id-link'><select id='LinkToAppField' class='ufo-formvalue inputselect ufo-select' style='width:100%' onchange='ufoCf.disableContactOptions(this)'><?php 
EasyContactFormsCustomFormFields::getAppFieldList('text', $LinkToAppField, $id, $formid);
?>
</select></div></div></div></div>
Ejemplo n.º 2
0
echo $DescriptionCSSStyle;
?>
</textarea></div></div></div></div></div></div><div id='ufo-customform-settings-setoptions-fieldset' class='ufo-customform-fieldform-fieldset ufo-id-link'><div class='ufo-customform-fieldform-fieldset-legend'><span id='ufo-customform-settings-setoptions-expander' class='ufo-customform-fieldform-fieldset-expander ufo-id-link' onclick='ufoCf.expanderClick(this.id, "ufo-customform-settings-setoptions");'>&nbsp;</span><div><input type='checkbox' id='SetOptions' value='on' <?php 
echo isset($SetOptions) && $SetOptions == 'on' ? 'checked' : '';
?>
 class='ufo-formvalue ufo-customform-fieldform-fieldset-cb' checked disabled><label for='SetOptions' style='width:auto;font-family:Arial;clear:none;display:block;margin:0;float:none;font-size:12px;padding:0;line-height:16px'><?php 
echo EasyContactFormsT::get('CF_SetOptions');
?>
</label></div></div><div id='ufo-customform-settings-setoptions' class='ufo-customform-fieldform-fieldset-hidden ufo-id-link'><div><label for='Options'><?php 
echo EasyContactFormsT::get('CF_Options');
?>
<span id='OptionsHin' class='ufo-settingsform-label-hint ufo-label-hint ufo-id-link'>[<a>?</a>]</span></label><input type='hidden' id='OptionsHint' value='<?php 
echo EasyContactFormsT::get('CF_Hint_Options');
?>
' class='ufo-id-link'><div class='ufo-customform-fieldform-optionlist'><?php 
echo EasyContactFormsCustomFormFields::getSettingsFormOptionList($Options);
?>
</div></div></div></div><div id='ufo-customform-settings-required-fieldset' class='ufo-customform-fieldform-fieldset ufo-id-link'><div class='ufo-customform-fieldform-fieldset-legend'><span id='ufo-customform-settings-required-expander' class='ufo-customform-fieldform-fieldset-expander ufo-id-link' onclick='ufoCf.expanderClick(this.id, "ufo-customform-settings-required");'>&nbsp;</span><input type='hidden' id='RequiredHint' value='<?php 
echo EasyContactFormsT::get('CF_Hint_Required');
?>
' class='ufo-id-link'><div><input type='checkbox' id='Required' value='<?php 
echo isset($Required) && $Required == 'on' ? 'on' : 'off';
?>
' <?php 
echo isset($Required) && $Required == 'on' ? 'checked' : '';
?>
 class='ufo-formvalue ufo-customform-fieldform-fieldset-cb' onchange='this.value=(this.checked)?"on":"off";'><label for='Required' style='width:auto;font-family:Arial;clear:none;display:block;margin:0;float:none;font-size:12px;padding:0;line-height:16px'><?php 
echo EasyContactFormsT::get('CF_Required');
?>
<span id='RequiredHin' class='ufo-settingsform-label-hint ufo-label-hint ufo-id-link'>[<a>?</a>]</span></label></div></div><div id='ufo-customform-settings-required' class='ufo-customform-fieldform-fieldset-hidden ufo-id-link'><div><label for='RequiredMessage'><?php 
echo EasyContactFormsT::get('CF_RequiredMessage');
Ejemplo n.º 3
0
?>
' <?php 
$class = array();
if (isset($CSSClass) && !empty($CSSClass)) {
    $class[] = $CSSClass;
}
if (count($class) > 0) {
    echo " class='" . implode(' ', $class) . "'";
}
if (isset($SetSize) && $SetSize == 'on' && isset($Width) && !empty($Width) && isset($WidthUnit) && $WidthUnit == 'chars') {
    echo "size='{$Width}'";
}
$style = array();
if (isset($SetSize) && $SetSize == 'on' && isset($Width) && !empty($Width) && isset($WidthUnit) && !empty($WidthUnit) && $WidthUnit != 'chars') {
    $style[] = "width:{$Width}{$WidthUnit}";
}
if (isset($SetStyle) && $SetStyle == 'on' && isset($CSSStyle) && !empty($CSSStyle)) {
    $style[] = $CSSStyle;
}
if (count($style) > 0) {
    echo " style='" . implode(';', $style) . "'";
}
?>
><?php 
if (isset($HasEmpty) && $HasEmpty == 'on') {
    $eo = isset($EmptyOption) && !empty($EmptyOption) ? $EmptyOption : '...';
    echo '<option value="">' . $eo . '</option>';
}
echo EasyContactFormsCustomFormFields::getSelectOptions($id, 'select');
?>
</select>]]></Input></field>
Ejemplo n.º 4
0
$class = array();
if (isset($CSSClass) && !empty($CSSClass)) {
    $class[] = $CSSClass;
}
if (count($class) > 0) {
    echo " class='" . implode(' ', $class) . "'";
}
if (isset($SetSize) && $SetSize == 'on' && isset($Width) && !empty($Width) && isset($WidthUnit) && $WidthUnit == 'chars') {
    echo "size='{$Width}'";
}
$style = array();
if (isset($SetSize) && $SetSize == 'on' && isset($Width) && !empty($Width) && isset($WidthUnit) && !empty($WidthUnit) && $WidthUnit != 'chars') {
    $style[] = "width:{$Width}{$WidthUnit}";
}
if (isset($SetStyle) && $SetStyle == 'on' && isset($CSSStyle) && !empty($CSSStyle)) {
    $style[] = $CSSStyle;
}
if (count($style) > 0) {
    echo " style='" . implode(';', $style) . "'";
}
?>
><input type='hidden' id='ufo-field-id-<?php 
echo $id;
?>
' value='{id-<?php 
echo $id;
?>
}' class='ufo-hidden'><?php 
echo EasyContactFormsCustomFormFields::getSelectOptions($id, 'radiogroup');
?>
</div><div style='clear:both'></div>]]></Input></field>
    /**
     * 	getSettingsFormOptionList
     *
     * 	Creates an option list
     *
     * @param  $xml
     * 
     */
    function getSettingsFormOptionList($xml)
    {
        $index = 0;
        $sort = array();
        $sort2 = array();
        foreach ($xml->children() as $option) {
            $oindex = (string) $option->attributes()->index;
            $sort[] = $oindex;
            $sort2[$oindex] = $option[0];
        }
        natsort($sort);
        ?>
<div>
  <div class='buttons'>
    <?php 
        EasyContactFormsCustomFormFields::getSettingsFormButton('ufo-fieldform-option-add', EasyContactFormsT::get('CF_AddOption'), "onclick='ufoCf.addOption(this.id);'", 'icon_button_add');
        ?>
    <?php 
        EasyContactFormsCustomFormFields::getSettingsFormButton('ufo-fieldform-option-unset', EasyContactFormsT::get('CF_RemoveDefault'), "onclick='ufoCf.unsetDefault(this.id)'", 'icon_cf_remove_default_option');
        ?>
    <div style='clear:left'></div>
  </div>
  <ul id='ufo-customform-fieldform-option-list' class='ufo-customform-fieldform-option-ul ufo-id-link'>
    <?php 
        foreach ($sort as $item) {
            ?>
    <?php 
            $option = $sort2[$item];
            ?>
      <li class='ufo-customform-fieldform-option-li <?php 
            echo count($sort) == 1 ? 'ufo-fieldform-option-single-child' : '';
            ?>
'>
        <input type='radio' id='ufo-fieldform-option-default-<?php 
            echo $index;
            ?>
' value='<?php 
            echo $option->attributes()->default == 'true' ? 'on' : '';
            ?>
' name='ufo-fieldform-option-default' title='<?php 
            echo EasyContactFormsT::get('CF_Default');
            ?>
' tabindex='-1' <?php 
            echo $option->attributes()->default == 'true' ? 'checked' : '';
            ?>
 class='ufo-formvalue ufo-customform-option-default' onchange='ufoCf.unsetOptionValues();this.value=(this.checked)?"on":"off";'/>
        <input type='text' id='ufo-fieldform-option-li-<?php 
            echo $index;
            ?>
' value='<?php 
            echo $option;
            ?>
' class='ufo-formvalue textinput ufo-text ufo-fieldform-option-li'/>
        <a id='ufo-fieldform-option-add-<?php 
            echo $index;
            ?>
' title='<?php 
            echo EasyContactFormsT::get('Add');
            ?>
' href='javascript:;' class='icon_button_add ufo-customform-option-add ufo-id-link' onclick='ufoCf.addOption(this.id);'></a>
        <a id='ufo-fieldform-option-delete-<?php 
            echo ++$index;
            ?>
' title='<?php 
            echo EasyContactFormsT::get('Delete');
            ?>
' class='icon_button_delete ufo-customform-option-delete ufo-id-link' onclick='ufoCf.deleteOption(this);'></a>
      </li>
    <?php 
        }
        ?>
  </ul>
</div><?php 
    }