Changeset 5123 for trunk


Ignore:
Timestamp:
11/03/11 10:11:04 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus, do modulo admin.

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/inc/class.uiconfig.inc.php

    r4548 r5123  
    191191         
    192192                                $campos_vazio = true; 
    193                                 $campos = "<div> 
    194                                                                 <label style=\"margin:46px;\">" . lang('Name')               . "</label> 
    195                                                                 <label style=\"margin:50px;\">" . lang('Corresponding LDAP') . "</label> 
    196                                                                 <label style=\"margin:25px;\">" . lang('Type')               . "</label> 
    197                                                                 <label style=\"margin:10px;\">" . lang('Searchable')         . "</label> 
    198                                                         </div>"; 
     193                                $campos = " 
     194                                                <input type=\"hidden\" id=\"textHidden\" value=\"".lang('Text')."\" /> 
     195                                                <input type=\"hidden\" id=\"multitextHidden\" value=\"".lang('Multivalued')."\" /> 
     196                                                <input type=\"hidden\" id=\"yesHidden\" value=\"".lang('Yes')."\" /> 
     197                                                <input type=\"hidden\" id=\"noHidden\" value=\"".lang('No')."\" /> 
     198                                                <input type=\"hidden\" id=\"deleteHidden\" value=\"".lang('Delete')."\" /> 
     199                                                <table id=\"cc_newconf\" name=\"cc_newconf\" class=\"cc_attribute\"> 
     200                                                   <tbody id=\"cc_newconftable\" name=\"cc_newconftable\"> 
     201                                                        <tr> 
     202                                                                <td align=\"center\" style=\"width:170px;\">" . lang('Name')               . "</td> 
     203                                                                <td align=\"center\" style=\"width:170px;\">" . lang('Corresponding LDAP') . "</td> 
     204                                                                <td align=\"center\" style=\"width:100px; margin: 0px 0px 0px 8px;\">" . lang('Type')               . "</td> 
     205                                                                <td align=\"center\" style=\"width:80px; margin: 0px 16px;\">" . lang('Searchable')         . "</td> 
     206                                                                <td align=\"center\" style=\"width: 15px;\"> 
     207                                                        </tr>"; 
    199208                 
    200209                        foreach ($fields as $i => $line)  
     
    208217 
    209218                                                 
    210                                 $campos = $campos . "<div class=\"cc_attribute\"> 
    211                                                                         <input type=\"text\" name=\"newsettings[cc_attribute_name_" . $i . "]\" value=\"".$line["cc_attribute_name_$i"]."\" style=\"width:170px;\"/>  
    212                                                                         <input type=\"text\" name=\"newsettings[cc_attribute_ldapname_" . $i . "]\" value=\"".$line["cc_attribute_ldapname_$i"]."\" style=\"width:170px;\"/>  
    213                                                                         <select name=\"newsettings[cc_attribute_type_" . $i . "]\" style=\"width:86px; margin: 0px 0px 0px 8px;\"> 
     219                                $campos = $campos . " 
     220                                                                <tr> 
     221                                                                        <td><input type=\"text\" name=\"newsettings[cc_attribute_name_" . $i . "]\" value=\"".$line["cc_attribute_name_$i"]."\" style=\"width:170px;\"></input></td> 
     222                                                                        <td><input type=\"text\" name=\"newsettings[cc_attribute_ldapname_" . $i . "]\" value=\"".$line["cc_attribute_ldapname_$i"]."\" style=\"width:170px;\"></input></td> 
     223                                                                        <td><select name=\"newsettings[cc_attribute_type_" . $i . "]\" style=\"width:86px; margin: 0px 0px 0px 8px;\"> 
    214224                                                                                        <option value=\"text\" $selectedText>" . lang('Text') . "</option> 
    215225                                                                                        <option value=\"multivalues\" $selectedTMult>" . lang('Multivalued') ."</option> 
    216                                                                         </select> 
    217                                                                         <select name=\"newsettings[cc_attribute_searchable_$i]\" style=\"margin: 0px 16px;\"> 
     226                                                                        </select></td> 
     227                                                                        <td><select name=\"newsettings[cc_attribute_searchable_$i]\" style=\"margin: 0px 16px;\"> 
    218228                                                                                        <option value=\"true\" $selectedYes>" . lang('Yes') . "</option> 
    219229                                                                                        <option value=\"false\" $selectedNo>" . lang('No') . "</option> 
    220                                                                         </select> 
    221                                                                         <img src=\"contactcenter/templates/default/images/cc_x.png\" alt=\"". lang('Delete') . "\" style=\"width: 15px; height: 14px; cursor: pointer; position: relative; top: 3px;\" onclick=\"javascript:cc_attribute_delete(this)\"/ 
    222                                                                 </div>"; 
     230                                                                        </select></td> 
     231                                                                        <td><img src=\"contactcenter/templates/default/images/cc_x.png\" alt=\"". lang('Delete') . "\" title=\"". lang('Delete') ."\" style=\"width: 15px; height: 14px; cursor: pointer; position: relative; top: 3px;\" onclick=\"javascript:cc_attribute_delete(this)\"></img></td 
     232                                                                </tr>"; 
    223233                        } 
    224234                        }  
     
    226236                            if ($campos_vazio) 
    227237                        { 
    228                                 $campos .= "<div class=\"cc_attribute\"> 
    229                                 <input type=\"text\" name=\"newsettings[cc_attribute_name_0]\" value=\"\" style=\"width:170px;\"/>  
    230                                 <input type=\"text\" name=\"newsettings[cc_attribute_ldapname_0]\" value=\"\" style=\"width:170px;\"/>  
    231                                 <select name=\"newsettings[cc_attribute_type_0]\" style=\"width:86px; margin: 0px 0px 0px 8px;\"> 
     238                                        $campos .= "<tr> 
     239                                                                        <td><input type=\"text\" name=\"newsettings[cc_attribute_name_0]\" value=\"\" style=\"width:170px;\"/> </td> 
     240                                                                        <td><input type=\"text\" name=\"newsettings[cc_attribute_ldapname_0]\" value=\"\" style=\"width:170px;\"/> </td> 
     241                                                                        <td><select name=\"newsettings[cc_attribute_type_0]\" style=\"width:86px; margin: 0px 0px 0px 8px;\"> 
    232242                                        <option value=\"text\">" . lang('Text') . "</option> 
    233243                                        <option value=\"multivalues\">" . lang('Multivalued') . "</option> 
    234                                 </select> 
    235                                                                 <select name=\"newsettings[cc_attribute_searchable_0]\" style=\"margin: 0px 16px;\"> 
     244                                                                        </select></td> 
     245                                                                        <td><select name=\"newsettings[cc_attribute_searchable_0]\" style=\"margin: 0px 16px;\"> 
    236246                                        <option value=\"true\">" . lang('Yes') . "</option> 
    237247                                        <option value=\"false\" selected=\"selected\">" . lang('No') . "</option> 
    238                                 </select> 
    239                                 <img src=\"contactcenter/templates/default/images/cc_x.png\" alt=\"". lang('Delete') ."\" style=\"width: 15px; height: 14px; cursor: pointer; position: relative; top: 3px;\" onclick=\"javascript:cc_attribute_delete(this)\"/>  
    240                         </div>"; 
     248                                                                        </select></td> 
     249                                                                        <td><img src=\"contactcenter/templates/default/images/cc_x.png\" alt=\"". lang('Delete') ."\" title=\"". lang('Delete') ."\" style=\"width: 15px; height: 14px; cursor: pointer; position: relative; top: 3px;\" onclick=\"javascript:cc_attribute_delete(this)\"/></td> 
     250                                                                </tr>";                          
    241251                        } 
     252                        $campos = $campos . "</tbody></table>"; 
    242253                         
    243254                        $t->set_var('lang_add_button', lang('Add')); 
  • trunk/admin/setup/setup.inc.php

    r4186 r5123  
    1313        $setup_info['admin']['name']      = 'admin'; 
    1414        $setup_info['admin']['title']      = 'Admin'; 
    15         $setup_info['admin']['version']   = '2.2.1'; 
     15        $setup_info['admin']['version']   = '2.4.0'; 
    1616        $setup_info['admin']['app_order'] = 1; 
    1717        $setup_info['admin']['tables']    = ''; 
     
    4848        $setup_info['admin']['depends'][] = array( 
    4949                'appname' => 'phpgwapi', 
    50                 'versions' => Array('2.2') 
     50                'versions' => Array('2.4.0') 
    5151        ); 
    5252?> 
Note: See TracChangeset for help on using the changeset viewer.