예제 #1
0
파일: form_names.php 프로젝트: Lothurm/J3.x
		if (task == 'cancel' || document.formvalidator.isValid(document.id('nameForm'))) {
			Joomla.submitform(task, document.getElementById('nameForm'));
		} else {
			jtrefnot(1);
			alert('<?php 
echo $this->escape(JText::_('JT_VALIDATION_FORM_FAILED'));
?>
');
		}
	}
</script>
<!--  set up counters and other necessities -->
<?php 
$namCnt = 0;
$this->form->setValue('living', 'person', $this->lists['indLiving']);
$display = FormHelper::checkDisplay('name', $this->lists['indLiving']);
?>

<script type="text/javascript">
	<?php 
echo FormHelper::getNameEventRowScript('personName', $this->form, $this->lists['appId']);
?>
	<?php 
echo FormHelper::getReferenceRowScript($this->form, $this->lists['appId']);
?>
	<?php 
echo FormHelper::getNoteRowScript(false, $this->form, $this->lists['appId']);
?>
	<?php 
echo FormHelper::getGeneralRowScript();
?>
예제 #2
0
<?php

defined('_JEXEC') or die('Restricted access');
?>

<?php 
$html = '';
$indEvents = false;
$events = $this->person->getPersonEvents();
// Button for editing (only active with AJAX)
if ($this->lists['technology'] != 'b' && $this->lists['technology'] != 'j') {
    if (is_object($this->canDo)) {
        $display = FormHelper::checkDisplay('person', $this->person->living);
        if ($display) {
            $html .= '<div class="jt-edit-2" style="text-align: right;">';
            if ($this->canDo->get('core.edit')) {
                $html .= '<a href="#" onclick="jtsubmitbutton(\'edit\', \'pevents\');" >';
                $html .= JText::_('JT_EDITEVENTS');
                $html .= '</a>';
            } else {
                $html .= '<span class="jt-edit-nolink" title="' . JText::_('JT_NOPERMISSION_DESC') . '" >';
                $html .= JText::_('JT_EDITEVENTS');
                $html .= '</span>';
            }
            $html .= '&nbsp;|';
            $html .= '</div>';
        }
    }
}
$i = 0;
foreach ($events as $event) {
예제 #3
0
파일: form_notes.php 프로젝트: Lothurm/J3.x
	{
		if (task == 'cancel' || document.formvalidator.isValid(document.id('noteForm'))) {
			Joomla.submitform(task, document.getElementById('noteForm'));
		} else {
			jtrefnot(1);
			alert('<?php 
echo $this->escape(JText::_('JT_VALIDATION_FORM_FAILED'));
?>
');
		}
	}
</script>
<!--  set up counters and other necessities -->
<?php 
$this->form->setValue('living', 'person', $this->lists['indLiving']);
$display = FormHelper::checkDisplay('person', $this->lists['indLiving'], 'NOTE');
?>

<script type="text/javascript">
	<?php 
echo FormHelper::getReferenceRowScript($this->form, $this->lists['appId']);
?>
	<?php 
echo FormHelper::getNoteRowScript(true, $this->form, $this->lists['appId']);
?>
	<?php 
echo FormHelper::getGeneralRowScript();
?>
</script>

예제 #4
0
파일: _names.php 프로젝트: Lothurm/J3.x
?>

<?php 
$html = '';
// start with the name of the person
$html .= '<div class="jt-h1" style="float: left; width: 85%;">';
$html .= !empty($this->person->prefix) ? $this->person->prefix . '&nbsp;' : '';
$html .= $this->person->firstNamePatronym . '&nbsp;' . $this->person->familyName;
$html .= !empty($this->person->suffix) ? '&nbsp;' . $this->person->suffix : '';
$html .= '</div>';
// Button for editing (only active with AJAX)
if ($this->lists['technology'] != 'b' && $this->lists['technology'] != 'j') {
    if (is_object($this->canDo)) {
        $html .= '<div class="jt-edit-2" style="text-align: right;">';
        $displayNot = FormHelper::checkDisplay('person', $this->person->living, 'NOTE');
        $displayRef = FormHelper::checkDisplay('person', $this->person->living, 'SOUR');
        if ($this->canDo->get('core.edit')) {
            $html .= '<a href="#" onclick="jtsubmitbutton(\'edit\', \'names\');" >';
            $html .= JText::_('JT_EDITNAMES');
            $html .= '</a>&nbsp;|<br />';
            if ($displayNot) {
                $html .= '<a href="#" onclick="jtsubmitbutton(\'edit\', \'notes\');" >';
                $html .= JText::_('JT_EDITNOTES');
                $html .= '</a>&nbsp;|<br />';
            }
            if ($displayRef) {
                $html .= '<a href="#" onclick="jtsubmitbutton(\'edit\', \'references\');" >';
                $html .= JText::_('JT_EDITREFS');
                $html .= '</a>&nbsp;|<br />';
            }
        } else {
예제 #5
0
		if (task == 'cancel' || document.formvalidator.isValid(document.id('reventForm'))) {
			Joomla.submitform(task, document.getElementById('reventForm'));
		} else {
			jtrefnot(1);
			alert('<?php 
echo $this->escape(JText::_('JT_VALIDATION_FORM_FAILED'));
?>
');
		}
	}
</script>
<!--  set up counters and other necessities -->
<?php 
$evtCnt = 0;
$this->form->setValue('living', 'person', $this->lists['indLiving']);
$display = FormHelper::checkDisplay('relation', $this->lists['indLiving']);
?>

<script type="text/javascript">
	<?php 
echo FormHelper::getNameEventRowScript('relationEvent', $this->form, $this->lists['appId']);
?>
	<?php 
echo FormHelper::getReferenceRowScript($this->form, $this->lists['appId']);
?>
	<?php 
echo FormHelper::getNoteRowScript(false, $this->form, $this->lists['appId']);
?>
	<?php 
echo FormHelper::getGeneralRowScript();
?>
예제 #6
0
파일: _partners.php 프로젝트: Lothurm/J3.x
     }
 }
 $html .= '<div class="jt-clearfix">';
 $html .= '<span class="jt-left-col-label jt-h3">' . $label . '</span>';
 if ($this->lists['technology'] != 'b' and $this->lists['technology'] != 'j') {
     $html .= '<span class="jt-detail-col-label jt-h3">&nbsp;</span>';
 }
 $html .= '<span class="jt-right-col-label jt-h3">' . JText::_('JT_BORN') . '</span>';
 $html .= '<span class="jt-right-col-label jt-h3">' . JText::_('JT_DIED') . '</span>';
 $html .= '</div>';
 foreach ($partners as $partner) {
     // Button for editing (only active with AJAX)
     if ($this->lists['technology'] != 'b' && $this->lists['technology'] != 'j') {
         if (is_object($this->canDo)) {
             $indliving = $this->person->living && $partner->living ? true : false;
             $display = FormHelper::checkDisplay('relation', $indliving);
             if ($display) {
                 $html .= '<div class="jt-clearfix"></div>';
                 $html .= '<div class="jt-edit-2" style="text-align: right;">';
                 if ($this->canDo->get('core.edit')) {
                     $html .= '<a href="#" ';
                     $html .= '   title="' . JText::sprintf('JT_EDITPARTNEREVENTS_DESC', $partner->firstName) . '"';
                     $html .= '   onclick="jtsetrelation(\'' . $partner->id . '\'); jtsubmitbutton(\'edit\', \'partnerevents\');" >';
                     $html .= JText::_('JT_EDITPARTNEREVENTS');
                     $html .= '</a>';
                 } else {
                     $html .= '<span class="jt-edit-nolink" title="' . JText::_('JT_NOPERMISSION_DESC') . '" >';
                     $html .= JText::_('JT_EDITPARTNEREVENTS');
                     $html .= '</span>';
                 }
                 $html .= '&nbsp;|';