Code Search for Developers
 
 
  

link.php from Group-Office groupware at Krugle


Show link.php syntax highlighted

<?php
/**
 * @copyright Copyright Intermesh 2006
 * @version $Revision: 1.2 $ $Date: 2006/11/23 11:34:44 $
 * 
 * @author Merijn Schering <mschering@intermesh.nl>

   This file is part of Group-Office.

   Group-Office is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   Group-Office is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with Group-Office; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      
 * @package Addressbook
 * @category Addressbook
 */
require_once("Group-Office.php");
$GO_SECURITY->authenticate();

load_basic_controls();
load_control('datatable');

$GO_HEADER['nomessages']=true;
$GO_HEADER['head']=datatable::get_header();
require_once($GO_THEME->theme_path."header.inc");


$h1 = new html_element('h1', $strCreateLink);
echo $h1->get_html();

$p = new html_element('p', sprintf($strLinkText, $_SESSION['GO_SESSION']['link_description']));
echo $p->get_html();

$table = new table();
$table->set_attribute('cellpadding','5');
$table->set_attribute('cellspacing','0');
$table->set_attribute('style','cursor:default;width:100%;');
$table->set_hover_effect();


$link =  "javascript:popup('".$GO_CONFIG->control_url."select/select.php?".
		"search_type=contact&multiselect=true&GO_HANDLER=".base64_encode($GO_CONFIG->control_url."select/link.php")."&pass_value=id&".
		"handler_base64_encoded=true&require_email_address=false".
		"&show_contacts=true&show_companies=true&show_projects=true".
		"&show_files=true','620','400');";

$row = new table_row();
$row->set_attribute('onclick', $link);
$img = new image('search');
$img->set_attribute('style', 'border:0px;width:32px;height:32px');
$row->add_cell(new table_cell($img->get_html()));
$row->add_cell(new table_cell($cmdSearch));

$table->add_row($row);


$row = new table_row();

$link = $GO_LINKS->get_active_link();

foreach($GO_MODULES->modules as $id=>$module)
{
	if($module['read_permission'] && $module_info = $GO_MODULES->get_module_info($id))
	{
		if(isset($module_info['linkable_items']))
		{
			require($GO_LANGUAGE->get_language_file($id));
			foreach($module_info['linkable_items'] as $linkable_item)
			{					
				$new_link = add_params_to_url($module['url'].$linkable_item['url'], 'return_to='.urlencode($link['return_to']));
				
				$row = new table_row();
				$row->set_attribute('onclick', "javascript:document.location='".$new_link."';");
				
				$img = new image($linkable_item['button']);
				$img->set_attribute('style', 'border:0px;width:32px;height:32px');
				$row->add_cell(new table_cell($img->get_html()));
				
				$cell = new table_cell($$linkable_item['language']);
				$cell->set_attribute('style','width:100%;');
				$row->add_cell($cell);
				$table->add_row($row);
			}
		}
	}
}


$link =  'javascript:parent.checker.location=\''.$GO_CONFIG->host.'checker.php?task=deactivate_linking\';document.location=\''.$link['return_to'].'\';';

$row = new table_row();
$row->set_attribute('onclick', $link);
$img = new image('cancel');
$img->set_attribute('style', 'border:0px;width:32px;height:32px');
$row->add_cell(new table_cell($img->get_html()));
$row->add_cell(new table_cell($cmdCancel));

$table->add_row($row);


echo $table->get_html();

require_once($GO_THEME->theme_path."footer.inc");




See more files for this project here

Group-Office groupware

Group-Office is a powerfull modular Internet/Intranet application framework. It features calendaring, project management, e-mail, tasks, addressbook, file management.

Project homepage: http://sourceforge.net/projects/group-office
Programming language(s): JavaScript,Pascal,PHP
License: other

  classes/
    base/
      controls/
        acl.class.inc
        activities_list.class.inc
        autocomplete.class.inc
        autocomplete_select.class.inc
        button.class.inc
        button_menu.class.inc
        checkbox.class.inc
        color_selector.class.inc
        csv.class.inc
        datagrid.class.inc
        datatable.class.inc
        date_picker.class.inc
        dbrecord.class.inc
        dropbox.class.inc
        dynamic_tabstrip.class.inc
        form.class.inc
        global_autocomplete.class.inc
        html_element.class.inc
        htmlarea.class.inc
        htmleditor.class.inc
        hyperlink.class.inc
        image.class.inc
        input.class.inc
        links_list.class.inc
        object_select.class.inc
        overlib.class.inc
        radio_list.class.inc
        radiogroup.class.inc
        select.class.inc
        select_link.class.inc
        select_users.class.inc
        statusbar.class.inc
        table.class.inc
        tabstrip.class.inc
        tabtable.class.inc
        testButton.php
        textarea.class.inc
        tooltip.class.inc
        treeview.class.inc
        user_autocomplete.class.inc
      base.auth.class.inc
      base.groups.class.inc
      base.security.class.inc
      base.users.class.inc
      config.class.inc
      controls.class.inc
      crypto.class.inc
      email.auth.class.inc
      language.class.inc
      ldap.auth.class.inc
      ldap.groups.class.inc
      ldap.security.class.inc
      ldap.users.class.inc
      links.class.inc
      modules.class.inc
      passwd.groups.class.inc
      passwd.security.class.inc
      passwd.users.class.inc
      search.class.inc
      sql.auth.class.inc
      sql.groups.class.inc
      sql.security.class.inc
      sql.users.class.inc
      theme.class.inc
      userlog.class.inc
    date/
      Date/
      tests/
      Date.php
      TODO
    dompdf/
      include/
      lib/
      www/
      ChangeLog
      HACKING
      INSTALL
      LICENSE.LGPL
      README
      TODO
      dompdf.php
      dompdf_config.inc.php
      load_font.php
    fpdf/
      font/
      faq.css
      faq.htm
      fpdf.class.inc
      xfpdf.class.inc
    mail/
      phpmailer/
      RFC822.class.inc
      imap.class.inc
      mimeDecode.class.inc
    xml/
      wbxml.class.inc
      xml.class.inc
      xpath.class.inc
    admin.class.inc
    dav.class.inc
    filesystem.class.inc
    highlighter.class.inc
    html2text.class.inc
    htmlparser.class.inc
    profiles.class.inc
    sajax.class.inc
    validate.class.inc
  configuration/
    index.php
    look.inc
    notations.inc
    privacy.inc
    profile.inc
    security.inc
    statistics.inc
  controls/
    FCKeditor/
    JUpload/
    htmlarea/
    jscalendar/
    overlib/
    overlibmws/
    phpthumb/
    select/
    acl.php
    backend_treeview.php
    color_selector.php
    fixpng.inc
    global_search_xml.php
    group.php
    reminder.php
    table_config.php
    user.php
    userlog.php
  database/
    ldap.class.inc
    mysql.class.inc
    oci8.class.inc
    odbc.class.inc
    oracle.class.inc
    pgsql.class.inc
    usql.class.inc
  error_docs/
    401.inc
    401.php
    403.inc
    403.php
    404.php
  ext/
    adapter/
    resources/
    ext-all-debug.js
    ext-all.js
  install/
    Intermesh.gif
    gotest.php
    install.css
    install.inc
    install.php
    install.sh
    macAddr
    macAddr.c
    test.inc
    update.sh
    update_single.sh
    upgrade.php
  javascript/
    actb.js
    autocomplete.php
    common.js
    datatable.js
    multifile.js
    pngfix.js
    select_users.js
  language/
    about/
    account/
    common/
    filetypes/
    login/
    preferences/
    sync/
    holidays.inc
    languages.inc
    make_language_pack
  lib/
    dav/
    icons/
    ldap/
    scripts/
    sql/
    favicon.ico
    intermesh.gif
    mime.types
    updates.inc
  login_screens/
    Default/
  modules/
    addressbook/
    bookmarks/
    calendar/
    chat/
    cms/
    comics/
    csvimport/
    email/
    example/
    filesystem/
    forum/
    gallery/
    groups/
    modules/
  phpUnit/
  themes/
  yui/
  CHANGELOG
  DEVELOPERS
  FAQ
  Group-Office.php
  LICENSE.GPL
  README
  README.ldap
  RELEASE
  TODO
  TRANSLATORS
  about.php
  adodb-time.inc.php
  auth_sources.dist
  checker.php
  fullscreen.php
  functions.inc
  functions_compat.inc
  groupoffice-cron.php
  groupofficeperson.schema
  index.php
  link.php
  links.js
  lost_password.php
  phpdoc.ini
  register.php
  search.php