Ejemplo n.º 1
0
 function page()
 {
     $model = $this->getModel('joaktreelist');
     $msg = $model->page();
     $link = 'index.php?option=com_joaktree&view=joaktreelist';
     $this->setRedirect(Jroute::_($link), $msg);
 }
Ejemplo n.º 2
0
 function cancel()
 {
     $form = $this->input->get('jform', null, 'array');
     $treeId = $this->input->get('treeId', null, 'int');
     $link = 'index.php?option=com_joaktree' . '&tech=a' . '&treeId=' . $treeId;
     switch ($form['type']) {
         case "parents":
             // continue
         // continue
         case "partners":
             // continue
         // continue
         case "children":
             $link .= '&view=joaktree' . '&personId=' . $form['person']['app_id'] . '!' . $form['person']['id'] . '&action=edit';
             break;
         case "media":
             $link .= '&view=personform' . '&personId=' . $form['person']['app_id'] . '!' . $form['person']['id'] . '&layout=form_medialist';
             break;
         default:
             $personId = !empty($form['person']['relations']['id'][0]) ? $form['person']['relations']['id'][0] : $form['person']['id'];
             $link .= '&view=joaktree' . '&personId=' . $form['person']['app_id'] . '!' . $personId . '&action=edit';
             break;
     }
     $this->setRedirect(Jroute::_($link), $msg);
 }
Ejemplo n.º 3
0
        echo $k != 0 ? 'style="display:none"' : '';
        ?>
> 
			<?php 
        if ($type_default->id == $type->id) {
            echo $this->getPatway();
        }
        ?>
		</div>
		<?php 
    }
    ?>
	</div>
	<div style="right:0px;">
		<a href="<?php 
    echo Jroute::_("index.php?option=com_javoice&view=feeds&layout=list&Itemid=" . $Itemid);
    ?>
">
			<?php 
    echo Jtext::_("Voices via RSS");
    ?>
			<img src="<?php 
    echo Juri::root();
    ?>
components/com_javoice/asset/images/rss.gif" alt="RSS help"/>
		</a>
	</div>
</div>
<?php 
} else {
    echo JText::_("PLEASE_CREATE_NEW_FORUM_AND_VOICE_TYPE");
 function onContentSearch($text, $phrase = '', $ordering = '', $areas = null)
 {
     //If the array is not correct, return it:
     if (is_array($areas)) {
         if (!array_intersect($areas, array_keys($this->onContentSearchAreas()))) {
             return array();
         }
     }
     $section = JText::_('PLG_SEARCH_BOOKINGFORCONNECTORRESOURCE');
     //Then load the parameters of the plugin.
     $pluginParams = $this->params;
     //Now define the parameters like this:
     $limit = $pluginParams->def('search_limit', 20);
     $direction = $pluginParams->def('direction', "asc");
     //Use the function trim to delete spaces in front of or at the back of the searching terms
     $text = trim($text);
     //Return Array when nothing was filled in.
     if ($text == '') {
         return array();
     }
     $wheres = array();
     switch ($phrase) {
         //search exact
         case 'exact':
             /*$text		= $db->Quote( '%'.$db->getEscaped( $text, true ).'%', false );
             		$where 		= '(' . implode( ') OR (', $wheres2 ) . ')';*/
             break;
             //search all or any
         //search all or any
         case 'all':
         case 'any':
             //set default
         //set default
         default:
             /*
             $words 	= explode( ' ', $text );
             $wheres = array();
             foreach ($words as $word)
             {
             $word		= $db->Quote( '%'.$db->getEscaped( $word, true ).'%', false );
             $wheres2 	= array();
             $wheres2[] 	= 'LOWER(a.name) LIKE '.$word;
             $wheres[] 	= implode( ' OR ', $wheres2 );
             }
             $where = '(' . implode( ($phrase == 'all' ? ') AND (' : ') OR ('), $wheres ) . ')';
             */
             break;
     }
     //ordering of the results
     switch ($ordering) {
         //alphabetic, ascending
         case 'alpha':
             $order = 'Name';
             break;
             //oldest first
         //oldest first
         case 'oldest':
             //popular first
         //popular first
         case 'popular':
             //newest first
         //newest first
         case 'newest':
             //default setting: alphabetic, ascending
         //default setting: alphabetic, ascending
         default:
             $order = 'Name';
     }
     //replace nameofplugin
     $rows = array();
     $resources = BFCHelper::getResourcesSearch($text, 0, $limit, $order, $direction);
     $document = JFactory::getDocument();
     $language = $document->getLanguage();
     /* we have to find the itemid for the target page */
     $db = JFactory::getDBO();
     $lang = JFactory::getLanguage()->getTag();
     $uri = 'index.php?option=com_bookingforconnector&view=resource';
     $db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uri . '%') . ' AND language=' . $db->Quote($lang) . ' LIMIT 1');
     $itemId = $db->getErrorNum() ? 0 : intval($db->loadResult());
     //The 'output' of the displayed link
     foreach ($resources as $resource) {
         //$rows[$key]->href = 'index.php?option=com_bookingforconnector&view=merchantdetails&merchantId=' . $merchant->MerchantId . ':' . BFCHelper::getSlug($merchant->Name);
         $resourceName = BFCHelper::getLanguage($resource->Name, $language);
         $rows[] = (object) array('href' => Jroute::_('index.php?Itemid=' . $itemId . '&option=com_bookingforconnector&view=resource&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName)), 'title' => $resourceName, 'created' => null, 'section' => $section, 'text' => BFCHelper::getLanguage($resource->Description, $language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags')), 'browsernav' => '0');
     }
     //Return the search results in an array
     return $rows;
 }
Ejemplo n.º 5
0
<!-- user has NO access to information -->
	<div class="jt-content-th" >
		<div class="jt-noaccess"><?php 
    echo JText::_('JT_NOACCESS');
    ?>
</div>
	</div>
<?php 
}
?>
	<div class="jt-clearfix jt-update">
	<?php 
if ($this->lists['showUpdate '] != 'N') {
    echo $this->lists['lastUpdate'];
    if ($this->lists['showchange'] == 1) {
        $link = Jroute::_('index.php?&option=com_joaktree' . ($this->lists['technology'] != 'b' ? '&tmpl=component' : '') . '&view=changehistory' . '&retId=' . $this->lists['retId'] . '&treeId=' . $this->person->tree_id . '&technology=' . $this->lists['technology']);
        $properties = $this->lists['technology'] != 'b' ? 'class="modal"  rel="{handler: \'iframe\', size: {x: 875, y: 460}, onClose: function() {}}"' : 'rel="noindex, nofollow"';
        ?>
				&nbsp;|&nbsp;
				<a href="<?php 
        echo $link;
        ?>
" <?php 
        echo $properties;
        ?>
>
					<?php 
        echo JText::_('JT_CHANGEHISTORY');
        ?>
				</a>
	<?php 
Ejemplo n.º 6
0
           	    <td bgcolor='<?php 
    echo $bgcolor;
    ?>
' height=20 style='border-right:1px solid white;'>
           	      <center>
           	       <?php 
    echo $i + 1;
    ?>
           	      </center>
           	    </td>
           	    <td bgcolor='<?php 
    echo $bgcolor;
    ?>
' style='padding-left:10px;border-right:1px solid white;'>
           	      <a href='<?php 
    echo Jroute::_('index.php?option=com_catsone&task=viewDetails&id=' . $catsone[$i]->joborder_id);
    ?>
'><?php 
    echo $catsone[$i]->title;
    ?>
</a>
           	    </td>
           	    <td bgcolor='<?php 
    echo $bgcolor;
    ?>
' style='padding-left:20px;border-right:1px solid white;'>
           	      <?php 
    echo $catsone[$i]->start_date;
    ?>
           	    </td>
           	    <td bgcolor='<?php 
Ejemplo n.º 7
0
 function delete()
 {
     $model = $this->getModel('source');
     $form = $this->input->get('jform', null, 'array');
     $appId = $this->input->get('appId', null, 'int');
     $cids = $this->input->get('cid', null, 'array');
     $ret = $model->delete($appId, $cids[0]);
     if ($ret) {
         $msg = JText::sprintf('JT_DELETED', $ret);
     } else {
         $msg = JText::_('JT_NOTAUTHORISED');
     }
     $link = 'index.php?option=com_joaktree' . '&view=source' . '&appId=' . $appId;
     $this->setRedirect(Jroute::_($link), $msg);
 }
Ejemplo n.º 8
0
 public function getButtons($counter, $but = array('save' => true, 'cancel' => true, 'check' => false, 'done' => false, 'add' => false), $indParent1 = false)
 {
     $html = array();
     if ($counter == 1) {
         $html[] = '<div class="jt-buttonbar" style="margin-left: 10px;">';
     } else {
         $html[] = '<div class="jt-buttonbar" style="margin-left: 10px; margin-top: 10px;">';
     }
     if ($but['save'] && !$but['check']) {
         $html[] = '	<a 	href="#" ';
         $html[] = '		id="save' . $counter . '"';
         $html[] = '		class="jt-button-closed jt-buttonlabel"';
         $html[] = '		title="' . JText::_('JSAVE') . '" ';
         $html[] = '		onclick="jtsubmitbutton(\'save\');"';
         $html[] = '	>';
         $html[] = JText::_('JSAVE');
         $html[] = '	</a>';
         $html[] = '&nbsp;';
     }
     if ($but['save'] && $but['check']) {
         $html[] = '	<a 	href="#" ';
         $html[] = '		id="save' . $counter . '"';
         $html[] = '		class="modal_check jt-button-closed jt-buttonlabel" ';
         $html[] = '		title="' . JText::_('JSAVE') . '" ';
         $html[] = '     rel="{handler: \'iframe\', size: {x: 800, y: 500}}" ';
         $html[] = '	>';
         $html[] = JText::_('JSAVE');
         $html[] = '	</a>';
         $html[] = '&nbsp;';
     }
     if ($but['done']) {
         $html[] = '	<a 	href="#" ';
         $html[] = '		id="done' . $counter . '"';
         $html[] = '		class="jt-button-closed jt-buttonlabel" ';
         $html[] = '		title="' . JText::_('JT_DONE') . '" ';
         $html[] = '		onclick="jtsubmitbutton(\'cancel\');"';
         $html[] = '	>';
         $html[] = JText::_('JT_DONE');
         $html[] = '	</a>';
         $html[] = '	&nbsp;';
     }
     if ($but['add']) {
         $html[] = '	<a 	href="#" ';
         $html[] = '		id="add' . $counter . '"';
         $html[] = '		class="jt-button-closed jt-buttonlabel" ';
         $html[] = '		title="' . JText::_('JTADD_DESC') . '" ';
         $html[] = '		onclick="document.getElementById(\'mediaForm\').object.value=\'media\'; jtsubmitbutton(\'edit\');"';
         $html[] = '	>';
         $html[] = JText::_('JTADD');
         $html[] = '	</a>';
         $html[] = '	&nbsp;';
     }
     if ($but['cancel']) {
         $html[] = '	<a 	href="#" ';
         $html[] = '		id="cancel' . $counter . '"';
         $html[] = '		class="jt-button-closed jt-buttonlabel" ';
         $html[] = '		title="' . JText::_('JCANCEL') . '" ';
         $html[] = '		onclick="jtsubmitbutton(\'cancel\');"';
         $html[] = '	>';
         $html[] = JText::_('JCANCEL');
         $html[] = '	</a>';
         $html[] = '	&nbsp;';
     }
     if ($but['check'] && $counter == 1) {
         $params = JoaktreeHelper::getJTParams(true);
         $patronym = $params->get('patronym', 0);
         $router = JSite::getRouter();
         $link1 = 'index.php?option=com_joaktree' . '&amp;view=joaktreelist' . '&amp;layout=check' . '&amp;tmpl=component' . '&amp;treeId=' . JoaktreeHelper::getTreeId() . '&amp;action=select';
         $link2 = 'index.php?option=com_joaktree' . '&amp;view=joaktreelist' . '&amp;layout=check' . '&amp;tmpl=component' . '&amp;treeId=' . JoaktreeHelper::getTreeId() . '&amp;action=' . ($indParent1 ? 'saveparent1' : 'save');
         //			$relId = JoaktreeHelper::getRelationId();
         //			if ($relId) {
         //				$link1 .= '&amp;relationId='.$relId;
         //				$link2 .= '&amp;relationId='.$relId;
         //			}
         // Build the script.
         $script = array();
         $script[] = 'function setCheckValue() {';
         $script[] = '   var link1 = "' . JRoute::_($link1) . '";';
         $script[] = '   var link2 = "' . JRoute::_($link2) . '";';
         $script[] = '   var link  = "";';
         $script[] = '	var search1 = document.getElementById("jform_person_firstName").value;';
         if ($patronym) {
             $script[] = '	var search2 = document.getElementById("jform_person_patronym").value;';
         }
         $script[] = '	var search3 = document.getElementById("jform_person_rawFamilyName").value;';
         if ($patronym) {
             $script[] = '   if ((search1 == "") && (search2 == "") && (search3 == "")) {';
             $script[] = '       link1 = "#"; link2 = "#";';
             $script[] = '   } else {';
             if ($router->getMode() == JROUTER_MODE_SEF) {
                 $script[] = '    if (search1 != "") { link = link + "/f-" + search1; } ';
                 $script[] = '    if (search2 != "") { link = link + "/s-" + search2; } ';
                 $script[] = '    if (search3 != "") { link = link + "/n-" + search3; } ';
             } else {
                 $script[] = '    if (search1 != "") { link = link + "&amp;search1=" + search1; } ';
                 $script[] = '    if (search2 != "") { link = link + "&amp;search2=" + search2; } ';
                 $script[] = '    if (search3 != "") { link = link + "&amp;search3=" + search3; } ';
             }
             $script[] = '   }';
         } else {
             // no search2 (= patronym)
             $script[] = '   if ((search1 == "") && (search3 == "")) {';
             $script[] = '       link1 = "#"; link2 = "#";';
             $script[] = '   } else {';
             if ($router->getMode() == JROUTER_MODE_SEF) {
                 $script[] = '    if (search1 != "") { link = link + "/f-" + search1; } ';
                 $script[] = '    if (search3 != "") { link = link + "/n-" + search3; } ';
             } else {
                 $script[] = '    if (search1 != "") { link = link + "&amp;search1=" + search1; } ';
                 $script[] = '    if (search3 != "") { link = link + "&amp;search3=" + search3; } ';
             }
             $script[] = '   }';
         }
         $script[] = '   document.getElementById("check1").setProperty("href", link1 + link);';
         $script[] = '   document.getElementById("save1").setProperty("href",  link2 + link);';
         $script[] = '   document.getElementById("save2").setProperty("href",  link2 + link);';
         $script[] = '}';
         $script[] = 'function jtNewPerson() {';
         $script[] = '   SqueezeBox.close();';
         $script[] = '	document.getElementById("newstatus").value="checked";';
         $script[] = '   var el1 = document.getElementById("save1");';
         $script[] = '   el1.setProperty("href",  "' . Jroute::_('index.php?option=com_joaktree&amp;view=close') . '");';
         $script[] = '   el1.removeProperty("rel");';
         $script[] = '   el1.setProperty("onclick", "jtsubmitbutton(\'save\');");';
         $script[] = '   var el2 = document.getElementById("save2");';
         $script[] = '   el2.setProperty("href",  "' . Jroute::_('index.php?option=com_joaktree&amp;view=close') . '");';
         $script[] = '   el2.removeProperty("rel");';
         $script[] = '   el2.setProperty("onclick", "jtsubmitbutton(\'save\');");';
         $script[] = '}';
         if ($indParent1) {
             $script[] = 'function jtSelectPerson(appId, personId, relationId, familyId) {';
             $script[] = '   SqueezeBox.close();';
             $script[] = '   var fam = new Element("option", {value: relationId + "!" + familyId}); ';
             $script[] = '   fam.inject(document.getElementById("jform_person_relations_family"));';
             $script[] = '   document.getElementById("jform_person_relations_family").value = relationId + "!" + familyId;';
             $script[] = '   document.getElementById("jform_person_id").value = personId;';
             $script[] = '   document.getElementById("jform_person_status").value = "relation";';
             $script[] = '	jtsubmitbutton("select");';
             $script[] = '}';
         } else {
             $script[] = 'function jtSelectPerson(appId, personId) {';
             $script[] = '   SqueezeBox.close();';
             $script[] = '   document.getElementById("jform_person_id").value = personId;';
             $script[] = '   document.getElementById("jform_person_status").value = "relation";';
             $script[] = '	jtsubmitbutton("select");';
             $script[] = '}';
         }
         $script[] = 'function jtSavePerson() {';
         $script[] = '   SqueezeBox.close();';
         $script[] = '	jtsubmitbutton("save");';
         $script[] = '}';
         // Add the script to the document head.
         JFactory::getDocument()->addScriptDeclaration(implode("\n", $script));
         // Load the modal behavior script.
         $html[] = JHtml::_('behavior.modal', 'a.modal_check');
         $html[] = '<input type="hidden" id="newstatus" value="unchecked" />';
         $html[] = '<span id="cp_label" class="jt-edit-2">';
         $html[] = '	<a 	href="#" ';
         $html[] = '		id="check' . $counter . '"';
         $html[] = '		class="modal_check jt-button-closed jt-buttonlabel" ';
         $html[] = '		title="' . JText::_('JT_CHECK') . '" ';
         $html[] = '     rel="{handler: \'iframe\', size: {x: 800, y: 500}}" ';
         $html[] = '	>';
         $html[] = JText::_('JT_CHECK');
         $html[] = '	</a>';
         $html[] = '</span>';
         $html[] = '&nbsp;';
     }
     $html[] = '</div>';
     $html[] = '<div class="clearfix"></div>';
     return implode("\n", $html);
 }
Ejemplo n.º 9
0
 function delete()
 {
     $model = $this->getModel('repository');
     $form = $this->input->get('jform', null, 'array');
     $appId = $this->input->get('appId', null, 'int');
     $cids = $this->input->get('cid', null, 'array');
     $msg = $model->delete($appId, $cids[0]);
     $link = 'index.php?option=com_joaktree' . '&view=repositories' . '&appId=' . $appId;
     $this->setRedirect(Jroute::_($link), $msg);
 }
Ejemplo n.º 10
0
	<?php 
echo JText::_('COM_DIGICOM_PRODUCTS_TOOLBAR_ADD_NEW');
?>
	<span class="caret"></span>
  </a>
  <ul class="dropdown-menu dropdown-menu-right" role="menu">
    <li>
		<a class="hasPopover" title="<?php 
echo JText::_("COM_DIGICOM_PRODUCTS_TOOLBAR_ADD_SINGLE_PRODUCT");
?>
" data-content="<?php 
echo JHtml::tooltipText('COM_DIGICOM_PRODUCTS_TOOLBAR_ADD_SINGLE_PRODUCT_TIP');
?>
" data-placement="left"
			href="<?php 
echo Jroute::_('index.php?option=com_digicom&task=product.add&product_type=reguler');
?>
">
			<i class="icon-file-add"></i>
			<?php 
echo JText::_("COM_DIGICOM_PRODUCTS_TOOLBAR_ADD_SINGLE_PRODUCT");
?>
		</a>
	</li>
    <li>
		<a class="hasPopover" title="<?php 
echo JText::_("COM_DIGICOM_PRODUCTS_TOOLBAR_ADD_BUNDLE_PRODUCT");
?>
" data-content="<?php 
echo JHtml::tooltipText('COM_DIGICOM_PRODUCTS_TOOLBAR_ADD_BUNDLE_PRODUCT_TIP');
?>
Ejemplo n.º 11
0
           	    <td bgcolor='<?php 
    echo $bgcolor;
    ?>
' height=20 style='border-right:1px solid white;'>
           	      <center>
           	       <?php 
    echo $i + 1;
    ?>
           	      </center>
           	    </td>
           	    <td bgcolor='<?php 
    echo $bgcolor;
    ?>
' style='padding-left:10px;border-right:1px solid white;'>
           	      <a href='<?php 
    echo Jroute::_('index.php?option=com_catsone&task=details&id=' . $row[$i]->joborder_id);
    ?>
'><?php 
    echo $row[$i]->title;
    ?>
</a>
           	    </td>
           	    <td bgcolor='<?php 
    echo $bgcolor;
    ?>
' style='padding-left:20px;border-right:1px solid white;'>
           	      <?php 
    echo $row[$i]->start_date;
    ?>
           	    </td>
           	    <td bgcolor='<?php 
Ejemplo n.º 12
0
if ($this->person->indNote == true) {
    if ($this->lists['technology'] == 'j') {
        $html .= '<a href="#" id="jt1notesid" class="jt-button-closed jt-buttonlabel" ';
        $html .= 'title="' . JText::_('JT_SHOW') . ' ' . JText::_('JT_NOTES') . '" ';
        if ($this->lists['technology'] == 'j') {
            $html .= 'onclick="toggleNotesSources(1, \'jt1notesid\', \'jt2notesid\', \'jt1sourcesid\', \'jt2sourcesid\');';
        } else {
            // old code - kept here for future re-use
            $link = JRoute::_('index.php?format=raw&option=com_joaktree' . '&view=joaktree&layout=_mainnotes' . '&tmpl=component&type=person&subtype=person' . '&personId=' . $this->person->app_id . '!' . $this->person->id . '&treeId=' . $this->person->tree_id);
            $html .= 'onclick="toggleAjaxNotesSources(1, \'jt1notesid\', \'jt2notesid\', \'jt1sourcesid\', \'jt2sourcesid\', \'' . $link . '\');';
        }
        $html .= 'return false;">';
        $html .= JText::_('JT_NOTES') . '</a>&nbsp;&nbsp;&nbsp;';
    }
}
if ($this->person->indCitation == true) {
    if ($this->lists['technology'] != 'b') {
        $html .= '<a href="#" id="jt1sourcesid" class="jt-button-closed jt-buttonlabel" ';
        $html .= 'title="' . JText::_('JT_SHOW') . ' ' . JText::_('JT_SOURCES') . '" ';
        if ($this->lists['technology'] == 'j') {
            $html .= 'onclick="toggleNotesSources(2, \'jt1notesid\', \'jt2notesid\', \'jt1sourcesid\', \'jt2sourcesid\');';
        } else {
            $link = Jroute::_('index.php?format=raw&option=com_joaktree' . '&view=joaktree&layout=_mainsources' . '&tmpl=component&type=person&subtype=personAll' . '&personId=' . $this->person->app_id . '!' . $this->person->id . '&treeId=' . $this->person->tree_id);
            $html .= 'onclick="toggleAjaxNotesSources(2, \'jt1notesid\', \'jt2notesid\', \'jt1sourcesid\', \'jt2sourcesid\', \'' . $link . '\');';
        }
        $html .= 'return false;">';
        $html .= JText::_('JT_SOURCES') . '</a>&nbsp;&nbsp;&nbsp;';
    }
}
$html .= '</div>';
echo $html;