News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1264728744:v:use_geshi-1:v:type-php

Started by SleePy, Jan 29, 2010, 01:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SleePy

         'member_groups' => array(
            'header' => array(
               'value' => $txt['sitead_download_access'],
            ),
            'data' => array(
               'function' => create_function('$rowData', '
                  global $context, $txt;

                  $return = \'
                     <input type="text" name="branch_\' . $row[\'id_branch\'] . \'" id="branch_\' . $row[\'id_branch\'] . \'" value="\' . $rowData[\'member_groups\'] . \'" />
                     <div id="branch_\' . $row[\'id_branch\'] . \'_container"></div>
                     <script language="JavaScript" type="text/javascript" defer="defer"><!-- // --><![CDATA[
                        var oBranchMember\' . $rowData[\'id_branch\'] . \'Suggest = new smc_AutoSuggest({
                           sSelf: \\\'oBranchMember\' . $rowData[\'id_branch\'] . \'Suggest\\\',
                           sSessionId: \\\'\' . $context[\'session_id\'] . \'\\\',
                           sSessionVar: \\\'\' . $context[\'session_var\'] . \'\\\',
                           sSuggestId: \\\'branch_\' . $row[\'id_branch\'] . \'\\\',
                           sControlId: \\\'branch_\' . $row[\'id_branch\'] . \'\\\',
                           sSearchType: \\\'member\\\',
                           sTextDeleteItem: \\\'\' . $txt[\'autosuggest_delete_item\'] . \'\\\',
                           bItemList: true,
                           sPostName: \\\'branch_\' . $row[\'id_branch\'] . \'_input\\\',
                           sURLMask: \\\'action=profile;u=%item_id%\\\',
                           sItemListContainerId: \\\'branch_\' . $row[\'id_branch\'] . \'_container\\\',
                           aListItems: [\';

                  $temp = explode(\',\', $rowData[\'member_groups\']);
                  foreach ($temp as $id)
                     $return .= \'
                                    {
                                       sItemId: \' . JavaScriptEscape($id) . \',
                                       sItemName: \' . JavaScriptEscape($context[\'membergroups\'][$id]) . \'
                                    },\';
                  // Clean up that last comma.
                  $return = substr($return, 0, -1);

                  $return .= \'
                           ]
                        });
                     // ]]></script>\';

                  return $return;
               '),
            ),
         ),
No siggy! :D

SleePy

         'member_groups' => array(
            'header' => array(
               'value' => $txt['sitead_download_access'],
            ),
            'data' => array(
               'function' => create_function('$rowData', '
                  global $context, $txt;

                  $return = \'
                     <input type="text" name="branch_\' . $rowData[\'id_branch\'] . \'" id="branch_\' . $rowData[\'id_branch\'] . \'" value="\' . $rowData[\'member_groups\'] . \'" />
                     <div id="branch_\' . $rowData[\'id_branch\'] . \'_container"></div>
                     <script language="JavaScript" type="text/javascript" defer="defer"><!-- // --><![CDATA[
                        var oBranchMember\' . $rowData[\'id_branch\'] . \'Suggest = new smc_AutoSuggest({
                           sSelf: \\\'oBranchMember\' . $rowData[\'id_branch\'] . \'Suggest\\\',
                           sSessionId: \\\'\' . $context[\'session_id\'] . \'\\\',
                           sSessionVar: \\\'\' . $context[\'session_var\'] . \'\\\',
                           sSuggestId: \\\'branch_\' . $rowData[\'id_branch\'] . \'\\\',
                           sControlId: \\\'branch_\' . $rowData[\'id_branch\'] . \'\\\',
                           sSearchType: \\\'member\\\',
                           sTextDeleteItem: \\\'\' . $txt[\'autosuggest_delete_item\'] . \'\\\',
                           bItemList: true,
                           sPostName: \\\'branch_\' . $rowData[\'id_branch\'] . \'_input\\\',
                           sURLMask: \\\'action=profile;u=%item_id%\\\',
                           sItemListContainerId: \\\'branch_\' . $rowData[\'id_branch\'] . \'_container\\\',
                           aListItems: [\';

                  $temp = explode(\',\', $rowData[\'member_groups\']);
                  foreach ($temp as $id)
                     $return .= \'
                                    {
                                       sItemId: \' . JavaScriptEscape($id) . \',
                                       sItemName: \' . JavaScriptEscape($context[\'membergroups\'][$id]) . \'
                                    },\';
                  // Clean up that last comma.
                  $return = substr($return, 0, -1);

                  $return .= \'
                           ]
                        });
                     // ]]></script>\';

                  return $return;
               '),
            ),
         ),
No siggy! :D

SleePy

         'member_groups' => array(
            'header' => array(
               'value' => $txt['sitead_download_access'],
            ),
            'data' => array(
               'function' => create_function('$rowData', '
                  global $context, $txt;

                  $return = \'
                     <input type="text" name="branch_\' . $rowData[\'id_branch\'] . \'" id="branch_\' . $rowData[\'id_branch\'] . \'" class="auto_suggest_div" disabled="disabled" value="\' . $rowData[\'member_groups\'] . \'" />
                     <div id="branch_\' . $rowData[\'id_branch\'] . \'_container"></div>
                     <script language="JavaScript" type="text/javascript" defer="defer"><!-- // --><![CDATA[
                        var oBranchMember\' . $rowData[\'id_branch\'] . \'Suggest = new smc_AutoSuggest({
                           sSelf: \\\'oBranchMember\' . $rowData[\'id_branch\'] . \'Suggest\\\',
                           sRetrieveURL: \\\'\' . $context[\'sa_url\'] . \'/download/branch/ajax?getMemberGroup;search=%search%;%sessionVar%=%sessionID%;xml;time=%time%\\\',
                           sItemTemplate: \\\'<input type="hidden" name="%post_name%[]" value="%item_id%" /><a href="%item_href%" class="extern" onclick="window.open(this.href, "_blank"); return false;">%item_name%</a>&nbsp;<img src="%images_url%/pm_recipient_delete.gif" alt="%delete_text%" title="%delete_text%" onclick="return %self%.deleteAddedItem(%item_id%);" class="auto_suggest_div" name="delete_link_\' . $rowData[\'id_branch\'] . \'" />\\\',
                           sSessionId: \\\'\' . $context[\'session_id\'] . \'\\\',
                           sSessionVar: \\\'\' . $context[\'session_var\'] . \'\\\',
                           sSuggestId: \\\'branch_\' . $rowData[\'id_branch\'] . \'\\\',
                           sControlId: \\\'branch_\' . $rowData[\'id_branch\'] . \'\\\',
                           sSearchType: \\\'member\\\',
                           sTextDeleteItem: \\\'\' . $txt[\'autosuggest_delete_item\'] . \'\\\',
                           bItemList: true,
                           sPostName: \\\'branch_\' . $rowData[\'id_branch\'] . \'_input\\\',
                           sURLMask: \\\'action=groups;area=viewgroups;sa=members;group=%item_id%\\\',
                           sItemListContainerId: \\\'branch_\' . $rowData[\'id_branch\'] . \'_container\\\',
                           aListItems: [\';

                  $temp = explode(\',\', $rowData[\'member_groups\']);
                  foreach ($temp as $id)
                     $return .= \'
                                    {
                                       sItemId: \' . JavaScriptEscape($id) . \',
                                       sItemName: \' . JavaScriptEscape($context[\'membergroups\'][$id]) . \'
                                    },\';
                  // Clean up that last comma.
                  $return = substr($return, 0, -1);

                  $return .= \'
                           ]
                        });
                     // ]]></script>\';

                  return $return;
               '),
            ),
         ),
No siggy! :D