Link to home
Start Free TrialLog in
Avatar of rpot
rpot

asked on

PHP issue

I need to be able to fix the follow line

document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&task=view&contact_id=????&Itemid=????' ); ?>';

Its usage is within the CMS called Mambo and it pertains to a section of my intranet that allows users the ability to send an email via the contacts module.
I need to edit the are within that line containing the "????" so that after the email button is clicked and the email is sent it will return to the original contact page the user was viewing.

What can I input there so that PHP understands I want it to redirect it back to the originating page the contact was on?

thanks in advance,

Ryan
Avatar of VoteyDisciple
VoteyDisciple

That depends entirely on what you have available on THIS page (the page generating that link).

If you're given contact_id=14 and Itemid=209 in the URL for this page, then you can simply do:
document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&amp;task=view&amp;contact_id=' . $_GET['contact_id'] . '&amp;Itemid=' . $_GET['Itemid']); ?>';


If that's not the case, then how can you tell which contact_id and Itemid you're supposed to use from the current page?



(I also noticed that you were using literal & in the URL, which is incorrect if that's how it makes it to the final page, so I corrected those to &amp;)
Avatar of rpot

ASKER

The link simply redirects the user back to the originating page at which the "SEND" button for email sending was.

page1 (with emailing form) -> pops up a window saying thankyou for the email -> redirected back to page1

the problem Im having is that it has to be dynamic to the point that it will work with different users contact_id within Mambo.

Let me give the above a try to see how its handled.

thanks,

Ryan
Avatar of rpot

ASKER

nope that did not work either. It sends the user to a totally different page.
Avatar of rpot

ASKER

This is what was outputted from your line correction:

index.php?option=com_contact&task=view&contact_id=&Itemid=

this is what it should look like; with consideration to the "1" and "115" being dynamic

index.php?option=com_contact&task=view&contact_id=1&Itemid=115

thanks,

Ryan
The bottom line is that the popped-up window MUST "know" which contact_id and Itemid it's supposed to use.  That means, in this case, that page1 will have to pop up the Thank You window with contact_id=14&Itemid=209.

Of course, that raises the same question on page1: does THAT page know which contact_id and Itemid to use?
Avatar of rpot

ASKER

Here is the script concerning the emailing form. If you can make heads/tails of where its not being handled properly I would really appreciate it.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

require_once( $mainframe->getPath( 'front_html' ) );
require_once( $mainframe->getPath( 'class' ) );

class contactUserControllers {
      var $manager = '';
      var $user = '';
      var $op = '';
      var $con_id = 0;
      var $contact_id = 0;
      var $catid = 0;
      var $Itemid = 0;

      function contactUserControllers ($manager) {
            $this->manager = $manager;
            $this->user =& mamboCore::get('currentUser');
            $this->op = mosGetParam($_REQUEST, 'op', '');
            $this->con_id = mosGetParam( $_REQUEST ,'con_id', 0 );
            $this->contact_id = mosGetParam( $_REQUEST ,'contact_id', 0 );
            $this->catid = mosGetParam( $_REQUEST ,'catid', 0 );
            $this->Itemid = mamboCore::get('Itemid');            
      }

      function sendmail () {
      
            global $mosConfig_usecaptcha;
      
            $captcha_success = 0;
            if ($mosConfig_usecaptcha == '1') {
            
                  session_name('mos_captcha');
                  session_start();
                  
                  $spamstop = mosGetParam( $_POST, 'spamstop', '' );

                  if(isset($_SESSION['code']) && ($_SESSION['code'] != "") && ($_SESSION['code'] == $spamstop)) {
                        $captcha_success = 1; // success
                  } else {
                        $captcha_success = 2; // fail
                  }
                  
            }
            
            if ($captcha_success != '2') {      
            
                  $contact = new mosContact();
                  $contact->load($this->con_id);

                  $default = mamboCore::get('mosConfig_sitename').' '.T_('Enquiry');
                  $email = mosGetParam( $_POST, 'email', '' );
                  $text = mosGetParam( $_POST, 'text', '' );
                  $name = mosGetParam( $_POST, 'name', '' );
                  $subject = mosGetParam( $_POST, 'subject', $default );
                  $email_copy = mosGetParam( $_POST, 'email_copy', 0 );

                  if (!$email OR !$text OR !$this->is_email($email) OR $this->has_emailheaders($text) OR $this->has_newlines($email) OR $this->has_newlines($name) OR $this->has_newlines($subject) OR !isset($_SERVER['HTTP_USER_AGENT']) OR $_SERVER['REQUEST_METHOD'] != 'POST') {
                        echo "<script>alert (\"".T_('Please make sure the form is complete and valid.')."\"); window.history.go(-1);</script>";
                        exit(0);
                  }
                  $prefix = sprintf( T_('This is an enquiry e-mail via %s from:'), mamboCore::get('mosConfig_live_site') );
                  $text = $prefix ."\n". $name. ' <'. $email .'>' ."\n\n". $text;

                  mosMail( $email, $name , $contact->email_to, mamboCore::get('mosConfig_fromname') .': '. $subject, $text );

                  if ( $email_copy ) {
                        $copy_text = sprintf( T_('The following is a copy of the message you sent to %s via %s '), $contact->name, mamboCore::get('mosConfig_sitename') );
                        $copy_text = $copy_text ."\n\n". $text .'';
                        $copy_subject = sprintf(T_('Copy of: %s'),$subject);
                        mosMail( mamboCore::get('mosConfig_mailfrom'), mamboCore::get('mosConfig_fromname'), $email, $copy_subject, $copy_text );
                  }
                  ?>
                  <script>
                  alert( "<?php echo T_('Thank you for your e-mail ').$name; ?>" );
                  /**the following line is used to redirect users after sending an email from the contacts component **/
                  document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&amp;task=view&amp;contact_id=' . $_GET['contact_id'] . '&amp;Itemid=' . $_GET['Itemid']); ?>';
                  </script>
                  <?php                              
            } else {                  
                  echo "<SCRIPT> alert('Incorrect Security Code'); window.history.go(-1);</SCRIPT>";                        
            }
      }


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks,

Ryan
Though I see a couple \n\n referenced in there it looks like those fall within the body of the message, not the headers, so while that may not be ideal it should not actually cause any problems.

What would be helpful is not the code that composes the message body, but..
1.  The headers from the message (which I mentioned earlier), with identifying information removed I imagine, but with whitespace intact, since it's whitespace that's most likely the culprit.
2.  The code that actually generates the headers, perhaps, though what's relevant will depend on what the message actually looks like.
Avatar of rpot

ASKER

Tell me if this is what your looking for......


--------------------------------------------------------------------------------------------------------------------------------------------------------
/**
      * Check field contains an email address:
      * Returns false if text is not an email address
      */
      function is_email($email){
            return preg_match("/^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i", $email );
      }

      /**
      * Check single-line inputs:
      * Returns true if text contains newline character
      */
      function has_newlines($text) {
         return preg_match("/(%0A|%0D|\n+|\r+)/i", $text);
      }

      /**
      * Check multi-line inputs:
      * Returns true if text contains newline followed by
      * email-header specific string
      */
      function has_emailheaders($text) {
         return preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc:)/i", $text);
      }

}

class contact_lister_Controller extends contactUserControllers {

      function lister () {
            $categories = &mosContact::getCategories($this->user);
            $count = count($categories);
            if ($count == 0 OR ($count == 1 AND $categories[0]->numlinks == 1)) {
                  // No or one category that qualifies
                  $this->contact_id = $count == 1 ? $categories[0]->minimum : 0;
                  $controller = new contact_view_Controller ($this->manager);
                  $controller->view();
                  if ($this->op == 'sendmail') $this->sendmail();
                  return;
            }
            $rows = array();
            $currentcat =& new stdClass();
            // Parameters
            $menuhandler = mosMenuHandler::getInstance();
            $menu =& $menuhandler->getMenuByID($this->Itemid);
            $params =& $this->makeParams ($menu->params, $menu->name);
            // page header
            $currentcat->header = $params->get( 'header' );
            // Path to images
            $path = mamboCore::get('mosConfig_live_site').'/images/stories/';
            $currentcat->descrip = '';
            $currentcat->img = '';
            if ( $this->catid ) {
                  $params->set( 'type', 'category' );
                  // url links info for category
                  $rows = mosContact::getContacts($this->catid, $this->user);
                  // current category info
                  foreach ($categories as $category) {
                        if ($category->id == $this->catid) {
                              $currentcat =& $category;
                              // show description
                              $currentcat->descrip = $currentcat->description;
                              // page image
                              $currentcat->img = $path . $currentcat->image;
                              $currentcat->align = $currentcat->image_position;
                              // page header
                              if ( @$currentcat->name <> '' ) $currentcat->header .= ' - '.$currentcat->name;
                              break;
                        }
                  }
            }
            else {
                  $params->set( 'type', 'section' );
                  // show description
                  if ( $params->get( 'description' ) ) $currentcat->descrip = $params->get( 'description_text' );
                  // page image
                  if ( $params->get( 'image' ) <> -1 ) {
                        $currentcat->img = $path . $params->get( 'image' );
                        $currentcat->align = $params->get( 'image_align' );
                  }
            }
            // used to show table rows in alternating colours
            $tabclass = array( 'sectiontableentry1', 'sectiontableentry2' );
            HTML_contact::displaylist( $categories, $rows, $this->catid, $currentcat, $params, $tabclass );
            if ($this->op == 'sendmail') $this->sendmail();
      }

      function &makeParams ($rawparams, $name) {
            $params =& new mosParameters( $rawparams );
            $params->def( 'page_title', 1 );
            $params->def( 'header', $name, 'right' );
            $params->def( 'pageclass_sfx', '' );
            $params->def( 'headings', 1 );
            $params->def( 'back_button', mamboCore::get('mosConfig_back_button') );
            $params->def( 'description_text', T_('The Contact list for this Website.') );
            $params->def( 'image', -1 );
            $params->def( 'image_align' );
            $params->def( 'other_cat_section', 1 );
            // Category List Display control
            $params->def( 'other_cat', 1 );
            $params->def( 'cat_description', 1 );
            $params->def( 'cat_items', 1 );
            // Table Display control
            $params->def( 'headings', 1 );
            $params->def( 'position', '1' );
            $params->def( 'email', '0' );
            $params->def( 'phone', '1' );
            $params->def( 'ext', '1' );
            $params->def( 'telephone', '1' );
            return $params;
      }

}

class contact_view_Controller extends contactUserControllers {

      function view () {
            $database = mamboDatabase::getInstance();
            $query = "SELECT a.*, a.id AS value, CONCAT_WS( ' - ', a.name, a.con_position ) AS text"
            . "\n FROM #__contact_details AS a"
            . "\n LEFT JOIN #__categories AS cc ON cc.id = a.catid"
            . "\n WHERE a.published = '1'"
            . "\n AND cc.published = '1'"
            . "\n AND a.access <=". $this->user->gid
            . "\n AND cc.access <=". $this->user->gid
            . "\n ORDER BY a.default_con DESC, a.ordering ASC"
            ;
            $database->setQuery( $query );
            $list = $database->loadObjectList();
            $count = count($list);
            if ($count == 0) {
                  $params =& new mosParameters();
                  $params->def( 'back_button', mamboCore::get( 'mosConfig_back_button' ) );
                  HTML_contact::nocontact( $params );
                  return;
            }
            if ( $this->contact_id == 0 ) $this->contact_id = $list[0]->id;
            foreach ($list as $cont) {
                  if ($cont->id == $this->contact_id) {
                        $contact =& $cont;
                        break;
                  }
            }
            if (!isset($contact)) {
                  echo T_('You are not authorized to view this resource.');
                  return;
            }
            // creates dropdown select list
            $contact->select = mosHTML::selectList( $list, 'contact_id', 'class="inputbox" onchange="ViewCrossReference(this);"', 'value', 'text', $this->contact_id );
            // Adds parameter handling
            $params =& $this->makeParams ( $contact->params );
            if ( $contact->email_to AND $params->get( 'email' )) {
                  // email cloacking
                  $contact->email = mosHTML::emailCloaking( $contact->email_to );
            }
            // loads current template for the pop-up window
            $pop = mosGetParam( $_REQUEST, 'pop', 0 );
            if ( $pop ) {
                  $params->set( 'popup', 1 );
                  $params->set( 'back_button', 0 );
            }
            if ( $params->get( 'email_description' ) ) $params->set( 'email_description', $params->get( 'email_description_text' ) );
            else $params->set( 'email_description', '' );

            // needed to control the display of the Address marker
            $temp = $params->get( 'street_address' )
            . $params->get( 'suburb' )
            . $params->get( 'state' )
            . $params->get( 'country' )
            . $params->get( 'postcode' )
            ;
            $params->set( 'address_check', $temp );

            // determines whether to use Text, Images or nothing to highlight the different info groups
            $this->groupMarking($params);
            // params from menu item
            $menuhandler = mosMenuHandler::getInstance();
            $menu =& $menuhandler->getMenuByID($this->Itemid);
            $menu_params =& new mosParameters( $menu->params );

            $menu_params->def( 'page_title', 1 );
            $menu_params->def( 'header', $menu->name );
            $menu_params->def( 'pageclass_sfx', '' );

            HTML_contact::viewcontact( $contact, $params, $count, $list, $menu_params );
      }

      function &makeParams ($rawparams) {
            $params =& new mosParameters( $rawparams );
            $params->set( 'page_title', 0 );
            $params->def( 'pageclass_sfx', '' );
            $params->def( 'back_button', mamboCore::get( 'mosConfig_back_button' ) );
            $params->def( 'print', !mamboCore::get( 'mosConfig_hidePrint' ) );
            $params->def( 'name', '1' );
            $params->def( 'email', '0' );
            $params->def( 'street_address', '1' );
            $params->def( 'suburb', '1' );
            $params->def( 'state', '1' );
            $params->def( 'country', '1' );
            $params->def( 'postcode', '1' );
            $params->def( 'telephone', '1' );
            $params->def( 'ext', '1' );
            $params->def( 'misc', '1' );
            $params->def( 'image', '1' );
            $params->def( 'email_description', '1' );
            $params->def( 'email_description_text', T_('Send an Email to this Contact:') );
            $params->def( 'email_form', '1' );
            $params->def( 'email_copy', '1' );
            // global pront|pdf|email
            $params->def( 'icons', mamboCore::get( 'mosConfig_icons' ) );
            // contact only icons
            $params->def( 'contact_icons', 0 );
            $params->def( 'icon_address', '' );
            $params->def( 'icon_email', '' );
            $params->def( 'icon_telephone', '' );
            $params->def( 'icon_fax', '' );
            $params->def( 'icon_misc', '' );
            $params->def( 'drop_down', '0' );
            $params->def( 'vcard', '1' );
            return $params;
      }

      function groupMarking ($params) {
            switch ( $params->get( 'contact_icons' ) ) {
                  case 1:
                  // text
                        $params->set( 'marker_address', T_('Address: ') );
                        $params->set( 'marker_email', T_('Email: ') );
                        $params->set( 'marker_telephone', T_('Telephone: ') );
                        $params->set( 'marker_fax', T_('ext: ') );
                        $params->set( 'marker_misc', T_('Information: ') );
                        $params->set( 'column_width', '100px' );
                        break;
                  case 2:
                  // none
                        $params->set( 'marker_address', '' );
                        $params->set( 'marker_email', '' );
                        $params->set( 'marker_telephone', '' );
                        $params->set( 'marker_ext', '' );
                        $params->set( 'marker_misc', '' );
                        $params->set( 'column_width', '0px' );
                        break;
                  default:
                  // icons
                        $mainframe = mosMainFrame::getInstance();
                        $image1 = $mainframe->ImageCheck( 'con_address.png', '/images/M_images/', $params->get( 'icon_address' ) );
                        $image2 = $mainframe->ImageCheck( 'emailButton.png', '/images/M_images/', $params->get( 'icon_email' ) );
                        $image3 = $mainframe->ImageCheck( 'con_tel.png', '/images/M_images/', $params->get( 'icon_telephone' ) );
                        $image4 = $mainframe->ImageCheck( 'con_fax.png', '/images/M_images/', $params->get( 'icon_fax' ) );
                        $image5 = $mainframe->ImageCheck( 'con_info.png', '/images/M_images/', $params->get( 'icon_misc' ) );
                        $params->set( 'marker_address', $image1 );
                        $params->set( 'marker_email', $image2 );
                        $params->set( 'marker_telephone', $image3 );
                        $params->set( 'marker_fax', $image4 );
                        $params->set( 'marker_misc', $image5 );
                        $params->set( 'column_width', '40px' );
                        break;
            }
      }

}

class contact_vcard_Controller extends contactUserControllers {

      function vcard () {
            $contact = new mosContact();
            $contact->load($this->contact_id);
            $params = new mosParameters($contact->params);
            if (!$params->get('vcard')) {
                  echo "<script>alert (\"".T_('There are no vCards available for download.')."\"); window.history.go(-1);</script>";
                  exit(0);
            }
            $name = explode(' ', $contact->name);
            $firstname = $name[0];
            unset($name[0]);
            $last = count($name);
            if (isset($name[$last])) {
                  $surname = $name[$last];
                  unset($name[$last]);
            }
            else $surname = '';
            $middlename = trim (implode(' ', $name));

            $v       = new MambovCard();
            $v->setPhoneNumber( $contact->telephone, 'PREF;WORK;VOICE' );
            $v->setPhoneNumber( $contact->ext, 'WORK;EXT' );
            $v->setName( $surname, $firstname, $middlename, '' );
            $v->setAddress( '', '', $contact->address, $contact->suburb, $contact->state, $contact->postcode, $contact->country, 'WORK;POSTAL' );
            $v->setEmail( $contact->email_to );
            $v->setNote( $contact->misc );
            $v->setURL( mamboCore::get('mosConfig_live_site'), 'WORK' );
            $v->setTitle( $contact->con_position );
            $v->setOrg( mamboCore::get('mosConfig_sitename') );

            $filename      = str_replace( ' ', '_', $contact->name );
            $v->setFilename( $filename );

            $output       = $v->getVCard( mamboCore::get('mosConfig_sitename') );
            $filename = $v->getFileName();

            // header info for page
            header( 'Content-Disposition: attachment; filename='. $filename );
            header( 'Content-Length: '. strlen( $output ) );
            header( 'Connection: close' );
            header( 'Content-Type: text/x-vCard; name='. $filename );

            print $output;
            //mosRedirect('index.php');
      }

}

$alternatives = array ();
$admin =& new mosComponentUserManager ('contact', 'task', $alternatives, 'lister', T_('Contact Us'), $version);

?>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks,

Ryan
Sorry, I'm mixing up two questions here.

Let me take this back a step:

Where is the line of code that opens the popup window?   I looked through both those snippets and didn't notice it.  Finding that will be a good starting point.
Avatar of rpot

ASKER

function sendmail () {
      
            global $mosConfig_usecaptcha;
      
            $captcha_success = 0;
            if ($mosConfig_usecaptcha == '1') {
            
                  session_name('mos_captcha');
                  session_start();
                  
                  $spamstop = mosGetParam( $_POST, 'spamstop', '' );

                  if(isset($_SESSION['code']) && ($_SESSION['code'] != "") && ($_SESSION['code'] == $spamstop)) {
                        $captcha_success = 1; // success
                  } else {
                        $captcha_success = 2; // fail
                  }
                  
            }
            
            if ($captcha_success != '2') {      
            
                  $contact = new mosContact();
                  $contact->load($this->con_id);

                  $default = mamboCore::get('mosConfig_sitename').' '.T_('Enquiry');
                  $email = mosGetParam( $_POST, 'email', '' );
                  $text = mosGetParam( $_POST, 'text', '' );
                  $name = mosGetParam( $_POST, 'name', '' );
                  $subject = mosGetParam( $_POST, 'subject', $default );
                  $email_copy = mosGetParam( $_POST, 'email_copy', 0 );

                  if (!$email OR !$text OR !$this->is_email($email) OR $this->has_emailheaders($text) OR $this->has_newlines($email) OR $this->has_newlines($name) OR $this->has_newlines($subject) OR !isset($_SERVER['HTTP_USER_AGENT']) OR $_SERVER['REQUEST_METHOD'] != 'POST') {
                        echo "<script>alert (\"".T_('Please make sure the form is complete and valid.')."\"); window.history.go(-1);</script>";
                        exit(0);
                  }
                  $prefix = sprintf( T_('This is an enquiry e-mail via %s from:'), mamboCore::get('mosConfig_live_site') );
                  $text = $prefix ."\n". $name. ' <'. $email .'>' ."\n\n". $text;

                  mosMail( $email, $name , $contact->email_to, mamboCore::get('mosConfig_fromname') .': '. $subject, $text );

                  if ( $email_copy ) {
                        $copy_text = sprintf( T_('The following is a copy of the message you sent to %s via %s '), $contact->name, mamboCore::get('mosConfig_sitename') );
                        $copy_text = $copy_text ."\n\n". $text .'';
                        $copy_subject = sprintf(T_('Copy of: %s'),$subject);
                        mosMail( mamboCore::get('mosConfig_mailfrom'), mamboCore::get('mosConfig_fromname'), $email, $copy_subject, $copy_text );
                  }
                  ?>
                  <script>
                  alert( "<?php echo T_('Thank you for your e-mail ').$name; ?>" );
                  /**the following line is used to redirect users after sending an email from the contacts component **/
                  document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&catid=65&Itemid=115' ); ?>';
                  </script>
                  <?php                              
            } else {                  
                  echo "<SCRIPT> alert('Incorrect Security Code'); window.history.go(-1);</SCRIPT>";                        
            }
      }
Avatar of rpot

ASKER

FYI: This line - document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&catid=65&Itemid=115' ); ?>';

Is modified currently from the one originally we were attempting to fix. It is set this way strictly for ridding the site of an error code that was originally taking place due to the original code not finding the correct page.
Avatar of rpot

ASKER

bumping the value of this question, due to its indepth nature.

thanks again for your help.

Ryan
That looks like the same code as before, but I'm still not seeing anywhere that pops open a new window.  I've assumed you're talking about an actual popup window (with a javascript window.open() command)?
Avatar of rpot

ASKER

This is the only thing I see handling the popup.


---------------------------------------------------------------------------------------------------------------------
<script>
                  alert( "<?php echo T_('Thank you for your e-mail ').$name; ?>" );

---------------------------------------------------------------------------------------------------------------------
Ah, so you're showing the code of the popped-up page?  The problem is you've said that page doesn't currently receive any information about the correct category or ItemId.  The code that does the popping-up has to generate that.  Add to the parameters sent to the page the current category and Itemid and THEN you'll have access to them on that new popped-up window.
Ok, you're using popup in a different way then.  That alert() just opens a little dialog box saying "Thank you....".  I took your description to mean that the steps the user has taken are as follows.

1.  I'm viewing a page called, say, Page A from Category 1 with Itemid 2
2.  On Page A I click a button and up pops a new window containing Page B.
3.  From Page B I click a button and need to get sent back (in the window that's underneath) to Page C with Category 1 and Itemid 2.

Where have I gone wrong?
Avatar of rpot

ASKER

Its not necessarily a popup page. Its simply a small box that pops up, and requires the user to click ok, which in turn directs them (it should anyway) back to the original page in which they were originally sending the email from.

this is where im having difficulties.

this line here handles the redirection after that popup box:

document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&catid=65&Itemid=115' ); ?>';

which is part of the entire sending email form popup (box) here:

<script>
                  alert( "<?php echo T_('Thank you for your e-mail ').$name; ?>" );
                  /**the following line is used to redirect users after sending an email from the contacts component **/
                  document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&catid=65&Itemid=115' ); ?>';
                  </script>
I see.  The confusion stems from the fact that the little alert box doesn't DO anything -- it's not the alert that's directing them anywhere.  The same underlying page is first showing an alert and second directing them to another page.  So we can completely discard that alert as being relevant at all.

Now let's focus on: how did the user get to this page?  The page that's executing both the alert and the document.location.href = code?  Did the PREVIOUS page "know" what category and Itemid to use?
Avatar of rpot

ASKER

how did the user get to this page? = Via hyperlink from the main page (contacts: http://xxxx.xxxx.xxxx/index.php?option=com_contact&catid=65&Itemid=115)

the following code handles direction from users choosing certain contacts:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

class HTML_contact {


      function displaylist( &$categories, &$rows, $catid, $currentcat=NULL, &$params, $tabclass ) {
            global $Itemid, $mosConfig_live_site, $hide_js;

            if ( $params->get( 'page_title' ) ) {
                  ?>
                  <div class="componentheading<?php echo $params->get( 'pageclass_sfx' ); ?>">
                  <?php echo $currentcat->header; ?>
                  </div>
                  <?php
            }
            ?>
            <form action="index.php" method="post" name="adminForm">

            <table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="contentpane<?php echo $params->get( 'pageclass_sfx' ); ?>">
            <tr>
                  <td width="60%" valign="top" class="contentdescription<?php echo $params->get( 'pageclass_sfx' ); ?>" colspan="2">
                  <?php
                  // show image
                  if ( $currentcat->img ) {
                        ?>
                        <img src="<?php echo $currentcat->img; ?>" align="<?php echo $currentcat->align; ?>" hspace="6" alt="<?php echo T_('Category'); ?>" />
                        <?php
                  }
                  echo $currentcat->descrip;
                  ?>
                  </td>
            </tr>
            <tr>
                  <td>
                  <?php
                  if ( count( $rows ) ) {
                        HTML_contact::showTable( $params, $rows, $catid, $tabclass );
                  }
                  ?>
                  </td>
            </tr>
            <tr>
                  <td>&nbsp;

                  </td>
            </tr>
            <tr>
                  <td>
                  <?php
                  // Displays listing of Categories
                  if ( ( $params->get( 'type' ) == 'category' ) && $params->get( 'other_cat' ) ) {
                        HTML_contact::showCategories( $params, $categories, $catid );
                  } else if ( ( $params->get( 'type' ) == 'section' ) && $params->get( 'other_cat_section' ) ) {
                        HTML_contact::showCategories( $params, $categories, $catid );
                  }
                  ?>
                  </td>
            </tr>
            </table>
            </form>
            <?php
            // displays back button
            mosHTML::BackButton ( $params, $hide_js );
      }

      /**
      * Display Table of items
      */
      function showTable( &$params, &$rows, $catid, $tabclass ) {
            global $mosConfig_live_site, $Itemid;
            ?>
            <table width="100%" border="0" cellspacing="0" cellpadding="4" align="center">
            <?php
            if ( $params->get( 'headings' ) ) {
                  ?>
                  <tr>
                        <td height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>">
                        <?php echo T_('Name'); ?>
                        </td>
                        <?php
                        if ( $params->get( 'position' ) ) {
                              ?>
                              <td height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>">
                              <?php echo T_('Position'); ?>
                              </td>
                              <?php
                        }
                        ?>
                        <?php
                        if ( $params->get( 'email' ) ) {
                              ?>
                              <td height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>">
                              <?php echo T_('Email'); ?>
                              </td>
                              <?php
                        }
                        ?>
                        <?php
                        if ( $params->get( 'telephone' ) ) {
                              ?>
                              <td height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>">
                              <?php echo T_('Phone'); ?>
                              </td>
                              <?php
                        }
                        ?>
                        <?php
                        if ( $params->get( 'ext' ) ) {
                              ?>
                              <td height="20" class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>">
                              <?php echo T_('Ext'); ?>
                              </td>
                              <?php
                        }
                        ?>
                        <td width="100%"></td>
                  </tr>
                  <?php
            }

            $k = 0;
            foreach ($rows as $row) {
                  $link = 'index.php?option=com_contact&amp;task=view&amp;contact_id='. $row->id .'&amp;Itemid='. $Itemid;
                  ?>
                  <tr>
                        <td width="25%" height="20" class="<?php echo $tabclass[$k]; ?>">
                        <a href="<?php echo sefRelToAbs( $link ); ?>" class="category<?php echo $params->get( 'pageclass_sfx' ); ?>">
                        <?php echo $row->name; ?>
                        </a>
                        </td>
                        <?php
                        if ( $params->get( 'position' ) ) {
                              ?>
                              <td width="25%" class="<?php echo $tabclass[$k]; ?>">
                              <?php echo $row->con_position; ?>
                              </td>
                              <?php
                        }
                        ?>
                        <?php
                        if ( $params->get( 'email' ) ) {
                              if ( $row->email_to ) {
                                    $row->email_to = mosHTML::emailCloaking( $row->email_to, 1 );
                              }
                              ?>
                              <td width="20%" class="<?php echo $tabclass[$k]; ?>">
                              <?php echo $row->email_to; ?>
                              </td>
                              <?php
                        }
                        ?>
                        <?php
                        if ( $params->get( 'telephone' ) ) {
                              ?>
                              <td width="35%" class="<?php echo $tabclass[$k]; ?>">
                              <?php echo $row->telephone; ?>
                              </td>
                              <?php
                        }
                        ?>
                        <?php
                        if ( $params->get( 'ext' ) ) {
                              ?>
                              <td width="15%" class="<?php echo $tabclass[$k]; ?>">
                              <?php echo $row->ext; ?>
                              </td>
                              <?php
                        }
                        ?>
                        <td width="100%"></td>
                  </tr>
                  <?php
                  $k = 1 - $k;
            }
            ?>
            </table>
            <?php
      }

      /**
      * Display links to categories
      */
      function showCategories( &$params, &$categories, $catid ) {
            global $mosConfig_live_site, $Itemid;
            ?>
            <ul>
            <?php
            if ($categories) foreach ( $categories as $cat ) {
                  if ( $catid == $cat->catid ) {
                        ?>
                        <li>
                              <b>
                              <?php echo $cat->title;?>
                              </b>
                              &nbsp;
                              <span class="small<?php echo $params->get( 'pageclass_sfx' ); ?>">
                              (<?php echo $cat->numlinks;?>)
                              </span>
                        </li>
                        <?php
                  } else {
                        $link = 'index.php?option=com_contact&amp;catid='. $cat->catid .'&amp;Itemid='. $Itemid;
                        ?>
                        <li>
                              <a href="<?php echo sefRelToAbs( $link ); ?>" class="category<?php echo $params->get( 'pageclass_sfx' ); ?>">
                              <?php echo $cat->title;?>
                              </a>
                              <?php
                              if ( $params->get( 'cat_items' ) ) {
                                    ?>
                                    &nbsp;
                                    <span class="small<?php echo $params->get( 'pageclass_sfx' ); ?>">
                                    (<?php echo $cat->numlinks;?>)
                                    </span>
                                    <?php
                              }
                              ?>
                              <?php
                              // Writes Category Description
                              if ( $params->get( 'cat_description' ) ) {
                                    echo '<br />';
                                    echo $cat->description;
                              }
                              ?>
                        </li>
                        <?php
                  }
            }
            ?>
            </ul>
            <?php
      }


      function viewcontact( &$contact, &$params, $count, &$list, &$menu_params ) {

            global $mosConfig_live_site;
            global $mainframe, $Itemid;
            $template = $mainframe->getTemplate();
            $sitename = $mainframe->getCfg( 'sitename' );
            $hide_js = mosGetParam($_REQUEST,'hide_js', 0 );
            ?>
            <script language="JavaScript" type="text/javascript">
            <!--
            function validate(){
                  if ( ( document.emailForm.text.value == "" ) || ( document.emailForm.email.value.search("@") == -1 ) || ( document.emailForm.email.value.search("[.*]" ) == -1 ) ) {
                        alert( "<?php echo T_('Please make sure the form is complete and valid.'); ?>" );
                  } else {
                  document.emailForm.action = "<?php echo sefRelToAbs("index.php?option=com_contact&Itemid=$Itemid"); ?>"
                  document.emailForm.submit();
                  }
            }
            //-->
            </script>
            <script type="text/javascript">
            <!--
            function ViewCrossReference( selSelectObject ){
                  var links = new Array();
                  <?php
                  $n = count( $list );
                  for ($i = 0; $i < $n; $i++) {
                     echo "\nlinks[".$list[$i]->value."]='"
                              . sefRelToAbs( 'index.php?option=com_contact&task=view&contact_id='. $list[$i]->value .'&Itemid='. $Itemid )
                              . "';";
                  }
                  ?>

                  var sel = selSelectObject.options[selSelectObject.selectedIndex].value
                  if (sel != "") {
                        location.href = links[sel];
                  }
            }
            //-->
            </script>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ryan
So the user gets to this page, and you're trying to redirect to the same page?  That index.php?option=com_contact looks the same in both places.  Is this correct, or have I misinterpreted?
Avatar of rpot

ASKER

I think were misunderstanding each other. Lets see if I can clarify this abit better. My mambo site utilizes a built in component called 'Contacts' this component allows a collection of contacts for users to utilize. This component also allows users to email the contact directly from the page displaying a certain persons criteria.

So if user1 goes to page -" index.php?option=com_contact&catid=65&Itemid=115 " (which is the main page for viewing all contacts within the database). searchs, and finds a certain person, he/she can click on that person which in turns takes them to the detailed information page for that particular contact. A user1 can then send that contact an email from the same 'detailed page' which after completeing the form will click 'send' which will popup a box saying ' thank you for your email $NAME_OF_PERSON$' requiring them to click ok in order to be directed back to the 'Detailed page' they were just on. So its sort of a little loop that happens when a user wants to send an email....


Hope this helps,

Ryan
I would just simply use $_GET['catid'] and $_GET['Itemid'].  As it works on all your pages, you shouldn't go wrong using these calls.  
Avatar of rpot

ASKER

So how do I input this: $_GET['catid'] and $_GET['Itemid']. - into this line: document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&catid=65&Itemid=115' ); ?>';
That's the very first thing I recommended (though at that time you'd said it was contact_id and not catid).  The code again would be:

<?php echo sefRelToAbs( 'index.php?option=com_contact&amp;catid=' . $_GET['catid'] . '&amp;Itemid=' . $_GET['Itemid']); ?>';


You said you already tried this and the Itemid never showed up in the URL.  Thus all the further exploration of how and where that's supposed to get passed.
Avatar of rpot

ASKER

You are correct. I apologize I pasted the wrong "href" ...
The original was: document.location.href='<?php echo sefRelToAbs( 'index.php?option=com_contact&task=view&contact_id=????&Itemid=????' ); ?>';

So if it is pertaining to the same code then it does not work.

Let's tackle this a different way.  After navigating to the page with the troublesome location.href,  copy and paste the entire from the browser window here (feel free to change the domain to www.example.com if you like).  This will show most directly what information you've got to work with on that page.
Avatar of rpot

ASKER

Here ya go..  Take note that any code showing " XXXXXXXXXXXX " is considered sensitive and I formated purposelly
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--//TinyMCE/MosTlyCE-->      
<script type="text/javascript" src="http://xxx.xxxxx.xxxx/mambots/editors/mostlyce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="http://xxx.xxxxx.xxxx/mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_functions.js"></script>
<script type="text/javascript">
      tinyMCE.init({
          mode : "specific_textareas",
            theme : "advanced",
            language : "en",
        lang_list : "en",
        table_color_fields : true,
        paste_use_dialog : true,
        advimage_constrain_proportions : true,
        invalid_elements: "object,applet,script",
        force_br_newlines : "false",
        force_p_newlines : "true",
        directionality : "ltr",
            plugins : "emotions,print,searchreplace,table,insertdatetime,layer,,preview,advlink,advimage,paste,fullscreen,directionality,mambo",
        theme_advanced_layout_manager : "RowLayout",
        theme_advanced_containers : "top1,top2,top3,top4,mceEditor,mceElementpath",
        theme_advanced_containers_default_class : "mceToolbar",
        theme_advanced_containers_default_align : "center",
        theme_advanced_container_top1_align : "left",
        theme_advanced_container_top2_align : "left",
        theme_advanced_container_top3_align : "left",
        theme_advanced_container_top4_align : "left",
        theme_advanced_container_top1 : "newdocument,separator,undo,redo,separator,selectall,cut,copy,paste,pastetext,pasteword,separator,removeformat,cleanup,separator,bold,italic,underline,strikethrough,sub,sup,separator,justifyleft,justifycenter,justifyright,justifyfull",
        theme_advanced_container_top2 : "outdent,indent,separator,bullist,numlist,separator,charmap,hr,separator,tablecontrols,separator,visualaid",
        theme_advanced_container_top3 : "styleselect,formatselect,separator,fontselect,fontsizeselect,forecolor,backcolor,separator,insertdate,inserttime",
        theme_advanced_container_top4 : "help,separator,fullscreen,preview,separator,print,separator,emotions,flash,separator,link,unlink,anchor,separator,image,separator,ltr,rtl,separator,code,search,replace,spellchecker,separator,insertlayer,moveforward,movebackward,absolute",
        theme_advanced_container_top1_class : "mceToolbarTop",
        theme_advanced_container_top2_class : "mceToolbarTop",
        theme_advanced_container_top3_class : "mceToolbarTop",
        theme_advanced_container_top4_class : "mceToolbarTop",
        theme_advanced_container_mceElementpath_class : "mcePathBottom",
            width : "500",
        height : "450",
        mambo_base_url: "http://xxx.xxxxx.xxxx/",
        document_base_url: "http://xxx.xxxxx.xxxx/",
        content_css : "http://xxx.xxxxx.xxxx/templates/digitaleye_green/css/editor_content.css",
        plugin_insertdate_dateFormat : "%m/%d/%Y",
          plugin_insertdate_timeFormat : "%I:%M%p",
            extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],font[face|size|color|style],",
            theme_advanced_resize_horizontal : false,
            theme_advanced_resizing : true,
            apply_source_formatting : true,
            spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv"
            });
</script>
<!-- /tinyMCE --><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contact Us - XXXXXXXXXXXXXXXXXXXX</title>
<meta name="description" content="Mambo - the dynamic portal engine and content management system" />
<meta name="keywords" content="mambo, Mambo" />
                  <script language="JavaScript1.2" src="http://xxx.xxxxx.xxxx/includes/js/mambojavascript.js" type="text/javascript"></script>
                              <link rel="shortcut icon" href="http://xxx.xxxxx.xxxx/images/favicon.ico" />
            <link href="http://xxx.xxxxx.xxxx/templates/digitaleye_green/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="http://xxx.xxxxx.xxxx/images/favicon.ico" />
</head>

<body topmargin="0" leftmargin="0" bgcolor="#334515">

<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table1">
      <tr>
            <td style="background-image: url('http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/left.png'); background-repeat: repeat-y; background-position-x: right">&nbsp;</td>
            <td width="935" bgcolor="#283710">
            <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table2">
                  <tr>
                        <td>
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table3">
                              <tr>
                                    <td bgcolor="#1F2B08">                  <table cellpadding="0" cellspacing="0" class="moduletable">
                                    <tr>
                        <td>
                        <ul id="mainlevel-nav"><li><a href="http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=1&Itemid=30" class="mainlevel-nav" >Contact Us</a></li><li><a href="http://xxx.xxxxx.xxxx/index.php?option=com_weblinks&Itemid=29" class="mainlevel-nav" >Links</a></li><li><a href="http://xxx.xxxxx.xxxx/index.php?option=com_frontpage&Itemid=28" class="mainlevel-nav" >Home</a></li></ul>                        </td>
                  </tr>
                  </table>
                  </td>
                                    <td width="291">
                                    <img border="0" src="http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/top_menu.jpg" width="358" height="19"></td>
                              </tr>
                        </table>
                        </td>
                  </tr>
                  <tr>
                        <td height="67" background="http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/top.jpg" valign="top">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table8" height="64">
                              <tr>
                                    <td width="14" height="10"></td>
                                    <td height="10"></td>
                              </tr>
                              <tr>
                                    <td width="14">&nbsp;</td>
                                    <td valign="top">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table12">
                                          <tr>
                                                <td></td>
                                                <td width="379">&nbsp;</td>
                                          </tr>
                                    </table>
                                    </td>
                              </tr>
                        </table>
                        </td>
                  </tr>
                  <tr>
                        <td>
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table6">
                              <tr>
                                    <td valign="top" style="background-image: url('http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/title.jpg'); background-repeat: no-repeat; background-position: left top">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table9">
                                          <tr>
                                                <td height="62" width="17">&nbsp;</td>
                                                <td height="62">&nbsp;</td>
                                          </tr>
                                          <tr>
                                                <td width="17">&nbsp;</td>
                                                <td>            <script language="JavaScript" type="text/javascript">
            <!--
            function validate(){
                  if ( ( document.emailForm.text.value == "" ) || ( document.emailForm.email.value.search("@") == -1 ) || ( document.emailForm.email.value.search("[.*]" ) == -1 ) ) {
                        alert( "Please make sure the form is complete and valid." );
                  } else {
                  document.emailForm.action = "http://xxx.xxxxx.xxxx/index.php?option=com_contact&Itemid=115"
                  document.emailForm.submit();
                  }
            }
            //-->
            </script>
            <script type="text/javascript">
            <!--
            function ViewCrossReference( selSelectObject ){
                  var links = new Array();
                  
links[213]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=213&Itemid=115';
links[212]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=212&Itemid=115';
links[211]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=211&Itemid=115';
links[210]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=210&Itemid=115';
links[209]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=209&Itemid=115';
links[208]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=208&Itemid=115';
links[207]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=207&Itemid=115';
links[206]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=206&Itemid=115';
links[205]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=205&Itemid=115';
links[204]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=204&Itemid=115';
links[203]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=203&Itemid=115';
links[202]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=202&Itemid=115';
links[201]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=201&Itemid=115';
links[200]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=200&Itemid=115';
links[199]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=199&Itemid=115';
links[198]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=198&Itemid=115';
links[197]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=197&Itemid=115';
links[196]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=196&Itemid=115';
links[195]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=195&Itemid=115';
links[194]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=194&Itemid=115';
links[193]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=193&Itemid=115';
links[192]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=192&Itemid=115';
links[191]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=191&Itemid=115';
links[190]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=190&Itemid=115';
links[189]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=189&Itemid=115';
links[188]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=188&Itemid=115';
links[187]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=187&Itemid=115';
links[186]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=186&Itemid=115';
links[185]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=185&Itemid=115';
links[184]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=184&Itemid=115';
links[183]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=183&Itemid=115';
links[182]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=182&Itemid=115';
links[181]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=181&Itemid=115';
links[180]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=180&Itemid=115';
links[179]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=179&Itemid=115';
links[178]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=178&Itemid=115';
links[177]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=177&Itemid=115';
links[176]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=176&Itemid=115';
links[175]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=175&Itemid=115';
links[174]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=174&Itemid=115';
links[173]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=173&Itemid=115';
links[172]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=172&Itemid=115';
links[171]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=171&Itemid=115';
links[170]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=170&Itemid=115';
links[169]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=169&Itemid=115';
links[168]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=168&Itemid=115';
links[167]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=167&Itemid=115';
links[166]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=166&Itemid=115';
links[165]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=165&Itemid=115';
links[164]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=164&Itemid=115';
links[163]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=163&Itemid=115';
links[162]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=162&Itemid=115';
links[161]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=161&Itemid=115';
links[160]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=160&Itemid=115';
links[159]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=159&Itemid=115';
links[158]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=158&Itemid=115';
links[157]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=157&Itemid=115';
links[156]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=156&Itemid=115';
links[155]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=155&Itemid=115';
links[154]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=154&Itemid=115';
links[150]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=150&Itemid=115';
links[149]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=149&Itemid=115';
links[148]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=148&Itemid=115';
links[147]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=147&Itemid=115';
links[146]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=146&Itemid=115';
links[145]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=145&Itemid=115';
links[144]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=144&Itemid=115';
links[143]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=143&Itemid=115';
links[142]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=142&Itemid=115';
links[141]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=141&Itemid=115';
links[140]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=140&Itemid=115';
links[139]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=139&Itemid=115';
links[138]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=138&Itemid=115';
links[137]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=137&Itemid=115';
links[136]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=136&Itemid=115';
links[135]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=135&Itemid=115';
links[134]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=134&Itemid=115';
links[133]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=133&Itemid=115';
links[132]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=132&Itemid=115';
links[131]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=131&Itemid=115';
links[130]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=130&Itemid=115';
links[129]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=129&Itemid=115';
links[128]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=128&Itemid=115';
links[127]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=127&Itemid=115';
links[126]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=126&Itemid=115';
links[125]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=125&Itemid=115';
links[124]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=124&Itemid=115';
links[123]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=123&Itemid=115';
links[122]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=122&Itemid=115';
links[121]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=121&Itemid=115';
links[120]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=120&Itemid=115';
links[119]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=119&Itemid=115';
links[118]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=118&Itemid=115';
links[117]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=117&Itemid=115';
links[116]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=116&Itemid=115';
links[115]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=115&Itemid=115';
links[114]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=114&Itemid=115';
links[113]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=113&Itemid=115';
links[112]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=112&Itemid=115';
links[111]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=111&Itemid=115';
links[110]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=110&Itemid=115';
links[109]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=109&Itemid=115';
links[107]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=107&Itemid=115';
links[106]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=106&Itemid=115';
links[105]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=105&Itemid=115';
links[104]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=104&Itemid=115';
links[103]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=103&Itemid=115';
links[102]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=102&Itemid=115';
links[101]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=101&Itemid=115';
links[108]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=108&Itemid=115';
links[100]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=100&Itemid=115';
links[99]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=99&Itemid=115';
links[98]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=98&Itemid=115';
links[97]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=97&Itemid=115';
links[96]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=96&Itemid=115';
links[95]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=95&Itemid=115';
links[94]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=94&Itemid=115';
links[93]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=93&Itemid=115';
links[92]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=92&Itemid=115';
links[91]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=91&Itemid=115';
links[90]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=90&Itemid=115';
links[89]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=89&Itemid=115';
links[88]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=88&Itemid=115';
links[87]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=87&Itemid=115';
links[86]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=86&Itemid=115';
links[85]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=85&Itemid=115';
links[84]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=84&Itemid=115';
links[83]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=83&Itemid=115';
links[82]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=82&Itemid=115';
links[81]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=81&Itemid=115';
links[80]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=80&Itemid=115';
links[79]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=79&Itemid=115';
links[78]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=78&Itemid=115';
links[77]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=77&Itemid=115';
links[76]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=76&Itemid=115';
links[75]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=75&Itemid=115';
links[74]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=74&Itemid=115';
links[73]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=73&Itemid=115';
links[72]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=72&Itemid=115';
links[71]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=71&Itemid=115';
links[70]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=70&Itemid=115';
links[69]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=69&Itemid=115';
links[68]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=68&Itemid=115';
links[67]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=67&Itemid=115';
links[66]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=66&Itemid=115';
links[65]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=65&Itemid=115';
links[64]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=64&Itemid=115';
links[63]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=63&Itemid=115';
links[62]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=62&Itemid=115';
links[61]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=61&Itemid=115';
links[60]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=60&Itemid=115';
links[59]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=59&Itemid=115';
links[58]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=58&Itemid=115';
links[57]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=57&Itemid=115';
links[56]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=56&Itemid=115';
links[55]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=55&Itemid=115';
links[54]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=54&Itemid=115';
links[53]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=53&Itemid=115';
links[52]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=52&Itemid=115';
links[51]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=51&Itemid=115';
links[50]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=50&Itemid=115';
links[49]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=49&Itemid=115';
links[48]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=48&Itemid=115';
links[47]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=47&Itemid=115';
links[46]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=46&Itemid=115';
links[45]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=45&Itemid=115';
links[44]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=44&Itemid=115';
links[43]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=43&Itemid=115';
links[42]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=42&Itemid=115';
links[41]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=41&Itemid=115';
links[40]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=40&Itemid=115';
links[39]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=39&Itemid=115';
links[35]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=35&Itemid=115';
links[38]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=38&Itemid=115';
links[37]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=37&Itemid=115';
links[36]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=36&Itemid=115';
links[34]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=34&Itemid=115';
links[33]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=33&Itemid=115';
links[32]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=32&Itemid=115';
links[31]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=31&Itemid=115';
links[30]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=30&Itemid=115';
links[29]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=29&Itemid=115';
links[28]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=28&Itemid=115';
links[14]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=14&Itemid=115';
links[15]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=15&Itemid=115';
links[16]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=16&Itemid=115';
links[17]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=17&Itemid=115';
links[18]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=18&Itemid=115';
links[25]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=25&Itemid=115';
links[24]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=24&Itemid=115';
links[23]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=23&Itemid=115';
links[22]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=22&Itemid=115';
links[19]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=19&Itemid=115';
links[21]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=21&Itemid=115';
links[20]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=20&Itemid=115';
links[5]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=5&Itemid=115';
links[26]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=26&Itemid=115';
links[27]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=27&Itemid=115';
links[6]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=6&Itemid=115';
links[7]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=7&Itemid=115';
links[8]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=8&Itemid=115';
links[151]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=151&Itemid=115';
links[153]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=153&Itemid=115';
links[152]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=152&Itemid=115';
links[9]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=9&Itemid=115';
links[10]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=10&Itemid=115';
links[11]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=11&Itemid=115';
links[12]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=12&Itemid=115';
links[13]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=13&Itemid=115';
links[4]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=4&Itemid=115';
links[3]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=3&Itemid=115';
links[2]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=2&Itemid=115';
links[1]='http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=1&Itemid=115';
                  var sel = selSelectObject.options[selSelectObject.selectedIndex].value
                  if (sel != "") {
                        location.href = links[sel];
                  }
            }
            //-->
            </script>
                              <div class="componentheading">
                  XXXXXXXX                  </div>
                  
            <table width="100%" cellpadding="0" cellspacing="0" border="0" class="contentpanetemplate_css.css">
                              <tr>
                        <td colspan="2" align="center">
                        <br />
                        <form action="http://xxx.xxxxx.xxxx/index.php?option=com_contact&Itemid=115" method="post" name="selectForm" target="_top" id="selectForm">
                        Select Contact:                        <br />
                        
<select name="contact_id" class="inputbox" onchange="ViewCrossReference(this);">

**********ALL OPTIONS HAVE BEEN DELETED DUE TO SENSITIVITY OF INFORMATION***********
      
</select>
                        </form>
                        </td>
                  </tr>
                                                <tr>
                              <td width="100%" class="contentheadingtemplate_css.css ">
                              <br><u><font size="4" color="#ff6600">XXXXXXXX</font></u>
                              </td>
                                                      </tr>
                                                <tr>
                              <td colspan="2">
                              <br>Position: XXXXXXXX                        </td>
                        </tr>
                                    <tr>
                  <td>
                        <table border="0" width="100%">
                        <tr>
                              <td></td>
                              <td rowspan="2" align="right" valign="top">
                                                <div style="float: left;">
                  <img src="http://xxx.xxxxx.xxxx/images/stories/xxxxxxxx.jpg" align="middle" border="3"  alt="Contact" />
                  </div>
                                                </td>
                        </tr>
                        <tr>
                              <td>
                                                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                          <tr>
                              <td width="" align="left">
                              Email:                              </td>
                              <br>
                              <td>
                              
<script language='JavaScript' type='text/javascript'>
<!--
var prefix = '&#109;a' + 'i&#108;' + '&#116;o';
var path = 'hr' + 'ef' + '=';
var addy82700 = 'rp&#111;t' + '&#64;' + '&#111;sc&#101;&#111;l&#97;' + '&#46;' + '&#111;rg';
document.write( '<a ' + path + '\'' + prefix + ':' + addy82700 + '\'>' );
document.write( addy82700 );
document.write( '<\/a>' );
//-->
</script>
<noscript>
This email address is being protected from spam bots, you need Javascript enabled to view it
</noscript>
                              </td>
                        </tr>
                                                <tr>
                        <td width="" align="left">
                              Phone#:                              </td>
                              <td>
                              321-697-4359                              </td>
                        </tr>
                                                <tr>
                              <td width="" align="left">
                              Ext:                              </td>
                              <td>
                              64359                              </td>
                        </tr>
                                          </table>
                  <br />
                                                </td>
                        </tr>
                        </table>
                  </td>
            </tr>
                              <tr>
                        <td colspan="2">
                        Download information as a                        <a href="index2.php?option=com_contact&task=vcard&contact_id=1&no_html=1">
                        VCard                        </a>
                        </td>
                  </tr>
                                    <tr>
                        <td colspan="2">
                        <br />
                        Send an Email to this Contact:                        <br /><br />
                        <form action="http://xxx.xxxxx.xxxx/index.php?option=com_contact&Itemid=1" method="post" name="emailForm" target="_top" id="emailForm">
                        <div class="contact_emailtemplate_css.css">
                              Enter your name:                              <br />
                              <input type="text" name="name" size="30" class="inputbox" value="" />
                              <br />
                              E-mail address:                              <br />
                              <input type="text" name="email" size="30" class="inputbox" value="" />
                              <br />
                              Message subject:                              <br />
                              <input type="text" name="subject" size="30" class="inputbox" value="" />
                              <br /><br />
                              Enter your message:                              <br />
                              <textarea cols="50" rows="10" name="text" class="inputbox"></textarea>
                                                                  <br />
                                    <input type="checkbox" name="email_copy"  value="1"  />
                                    Email a copy of this message to your own address      
                                                            
                              <br /><br />
                              <input type="button" name="send" value="Send" class="button" onclick="validate()" />
                        </div>
                        <input type="hidden" name="option" value="com_contact" />
                        <input type="hidden" name="con_id" value="1" />
                        <input type="hidden" name="sitename" value="XXXXXXXXXXXXXXXXXXXXXXXX" />
                        <input type="hidden" name="op" value="sendmail" />
                        </form>
                        </td>
                  </tr>
                              </table>
                              <div class="back_button">
                  <a href='javascript:history.go(-1)'>
                  Back                  </a>
                  </div>
                  </td>
                                          </tr>
                                    </table>
                                    </td>
                                    <td width="359" valign="top">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table7">
                                          <tr>
                                                <td>
                                                <img border="0" src="http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/logo.jpg" width="488" height="340"></td>
                                          </tr>
                                          <tr>
                                                <td height="326" background="http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/bot_menu.png" valign="top">
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table10" height="326" style="background-image: url('http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/menu.png'); background-repeat: no-repeat; background-position: left top">
                                                      <tr>
                                                            <td valign="top">
                                                            <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table11">
                                                                  <tr>
                                                                        <td width="126">&nbsp;</td>
                                                                        <td>&nbsp;</td>
                                                                        <td width="39">&nbsp;</td>
                                                                        <td width="164">&nbsp;</td>
                                                                        <td width="6">&nbsp;</td>
                                                                  </tr>
                                                                  <tr>
                                                                        <td width="126" valign="top">&nbsp;</td>
                                                                        <td valign="top">                  <table cellpadding="0" cellspacing="0" class="moduletable">
                                          <tr>
                              <th valign="top">
                              User Menu                              </th>
                        </tr>
                                          <tr>
                        <td>
                        
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_user&task=UserDetails&Itemid=21" class="mainlevel" >Your Details</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_login&Itemid=16" class="mainlevel" >Logout</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_contact&catid=65&Itemid=115" class="mainlevel" id="active_menu">XXXXXXXX</a></td></tr>
</table>                        </td>
                  </tr>
                  </table>
                  </td>
                                                                        <td width="39" valign="top">&nbsp;</td>
                                                                        <td width="164" valign="top">                  <table cellpadding="0" cellspacing="0" class="moduletable">
                                          <tr>
                              <th valign="top">
                              Main Menu                              </th>
                        </tr>
                                          <tr>
                        <td>
                        
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_frontpage&Itemid=1" class="mainlevel" >Home</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/calendar/calendar.php" target="_blank" class="mainlevel" >Events Calendar</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/traincal/calendar.php" target="_blank" class="mainlevel" >Training Calendar</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/classified" class="mainlevel" >Classifieds</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_content&task=section&id=13&Itemid=75" class="mainlevel" >Classes & Training</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_content&task=section&id=14&Itemid=76" class="mainlevel" >Divisions</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_content&task=section&id=15&Itemid=77" class="mainlevel" >Forms</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_content&task=category&sectionid=16&id=55&Itemid=110" class="mainlevel" >xxxxxxxxxxx</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_content&task=section&id=17&Itemid=79" class="mainlevel" >xxxxxxxx</a></td></tr>
<tr align="left"><td><a href="http://xxxxxxxx/powerdms/client/SignIn.asp?FullPath=/powerdms/client/default.asp" target="_blank" class="mainlevel" >xxxxxxxx</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_content&task=section&id=18&Itemid=80" class="mainlevel" >xxxxxxxx</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/index.php?option=com_content&task=section&id=21&Itemid=83" class="mainlevel" >xxxxxxxx</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/photos/PHP/UG_PHP.html" target="_blank" class="mainlevel" >Photo Gallery</a></td></tr>
<tr align="left"><td><a href="http://xxxxxxxxxxx/adgapps/fms/webpr001apg.p" target="_blank" class="mainlevel" >Time Sheet</a></td></tr>
<tr align="left"><td><a href="http://xxx.xxxxx.xxxx/forums" target="_blank" class="mainlevel" >Forums</a></td></tr>
<tr align="left"><td><a href="administrator" class="mainlevel" >Administrator</a></td></tr>
</table>                        </td>
                  </tr>
                  </table>
                                    <table cellpadding="0" cellspacing="0" class="moduletable">
                                          <tr>
                              <th valign="top">
                              Search                              </th>
                        </tr>
                                          <tr>
                        <td>
                        
<form action="http://xxx.xxxxx.xxxx/" method="post">

<div align="left" class="search">      
<input alt="search" class="inputbox" type="text" name="searchword" size="20" value="search..."  onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" /><input type="submit" value="Search" class="button"/></div>

<input type="hidden" name="option" value="search" />
</form>
                        </td>
                  </tr>
                  </table>
                                    <table cellpadding="0" cellspacing="0" class="moduletable">
                                          <tr>
                              <th valign="top">
                              Login Form                              </th>
                        </tr>
                                          <tr>
                        <td>
                              <form action="http://xxx.xxxxx.xxxx/" method="post" name="login" >
      <br />
      <div align="center">
      <input type="submit" class="button" value="Logout" />
      </div>

      <input type="hidden" name="option" value="logout" />
      <input type="hidden" name="op2" value="logout" />
      <input type="hidden" name="lang" value="en" />
      <input type="hidden" name="return" value="http://xxx.xxxxx.xxxx/index.php?option=com_contact&task=view&contact_id=1&Itemid=115" />
      <input type="hidden" name="message" value="0" />
      </form>
                              </td>
                  </tr>
                  </table>
                  </td>
                                                                        <td width="6" valign="top">&nbsp;</td>
                                                                  </tr>
                                                            </table>
                                                            </td>
                                                      </tr>
                                                </table>
                                                </td>
                                          </tr>
                                    </table>
                                    </td>
                              </tr>
                        </table>
                        </td>
                  </tr>
                  <tr>
                        <td height="59" background="http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/footer.jpg" valign="bottom">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table13">
                              <tr>
                                    <td width="800"></td>
                                    <td width="125">
                                                                        <a target="_blank" href="http://www.mambotemplate.ir">
                              <img border="0" src="http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/brand.png" width="148" height="24" alt="Digital Eye Free Template"></a></td>
                              </tr>
                        </table>
                        </td>
                  </tr>
                  </table>
            </td>
            <td style="background-image: url('http://xxx.xxxxx.xxxx/templates/digitaleye_green/images/right.png'); background-repeat: repeat-y; background-position-x: left">&nbsp;</td>
      </tr>
</table>

</body>

</html><!-- 1163689496 -->
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Just dumping out a lot of code often makes it HARDER to figure out what's going on.  I see a hundred or so URLs in there and I've learned nothing new.

In this case all I'd like to know is what URL is used to access the page where you're changing this code.  You can get that, as I suggested, by simply going to that page in your browser, and copying the URL from there.

Again, what matters in this whole thing is what information that page has to work with.
Avatar of rpot

ASKER

sorry I thought you wanted me to cut and paste the page source I was having issues with.

here is the page at which emails are sent from :

http://xxxxxxxxxxx/index.php?option=com_contact&task=view&contact_id=1&Itemid=115

Here is where it goes to now:

http://xxxxxxxxxxx/index.php?option=com_contact&catid=65&Itemid=115

I would like it to goto the top url which will be dynamic considering the contact_id being viewed at that time.
ASKER CERTIFIED SOLUTION
Avatar of VoteyDisciple
VoteyDisciple

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rpot

ASKER

I will give that a try.
Avatar of rpot

ASKER

No go....At this point I feel I will just forward the redirect back to the main Contacts page. I do appreciate your help with this, this whole time.


thanks,

Ryan