示例#1
0
function include_editor_tools($page)
{
    if (sfContext::getInstance()->getRequest()->getParameter('edit') == 'true' && !sfConfig::get('app_sfSimpleCMS_disable_editor_toolbar', false)) {
        use_stylesheet('/sfSimpleCMSPlugin/css/CMSEditorTools.css');
        include_component('sfSimpleCMS', 'editorTools', array('page' => $page));
    }
}
 public function executeUserBar()
 {
     if (!$this->getUser()->isAuthenticated()) {
         include_component('user', 'userBarLogIn');
     } else {
         include_component('user', 'userBarInfo');
     }
 }
 public function executeUserBar(sfWebRequest $request)
 {
     if (!$this->getUser()->isAuthenticated()) {
         include_component('user', 'userBarLogIn');
     } else {
         include_partial('user/userBarInfo');
     }
 }
示例#4
0
/**
 * seo_admin_bar
 *
 * @return includes an SEO menu bar in your project to edit meta and sitemap data
 * @author Brent Shaffer
 */
function seo_admin_bar()
{
    if (has_slot('seo_admin_bar')) {
        include_slot('seo_admin_bar');
    } else {
        include_component('csSEO', 'seo_admin_bar');
    }
}
示例#5
0
function loadModule($initial, $param = null, $show_error = true)
{
    $criteria = new Criteria();
    $criteria->add(WebModulePeer::INITIAL, $initial, Criteria::EQUAL);
    $requestModule = WebModulePeer::doSelectOne($criteria);
    if ($requestModule) {
        $module = 'mod_' . $requestModule->getWebModuleType()->getInitial();
        include_component($module, 'run', array('module' => $requestModule, 'param' => $param, 'initial' => $initial));
        return true;
    } else {
        if ($show_error) {
            echo '<h3 class="exception">Module ' . $initial . ' not found</h3>';
        }
        return false;
    }
}
示例#6
0
文件: aHelper.php 项目: hashir/UoA
function a_slot_body($name, $type, $permid, $options, $validationData, $editorOpen, $updating = false)
{
    $page = aTools::getCurrentPage();
    $slot = $page->getSlot($name);
    $parameters = array("options" => $options);
    $parameters['name'] = $name;
    $parameters['type'] = $type;
    $parameters['permid'] = $permid;
    $parameters['validationData'] = $validationData;
    $parameters['showEditor'] = $editorOpen;
    $parameters['updating'] = $updating;
    $user = sfContext::getInstance()->getUser();
    $controller = sfContext::getInstance()->getController();
    $moduleName = $type . 'Slot';
    if ($controller->componentExists($moduleName, "executeSlot")) {
        include_component($moduleName, "slot", $parameters);
    } else {
        include_component("a", "slot", $parameters);
    }
}
?>
"> :
                <input type="text" name="db_port" class="smallest" placeholder="default" id="db_port" value="<?php 
if (isset($port)) {
    echo $port;
}
?>
">
            </dd>
            <dt>
                <label for="db_name">Database name</label>
            </dt>
            <dd>
                <input type="text" name="db_name" class="small" id="db_name" value="<?php 
echo isset($db_name) ? $db_name : 'thebuggenie';
?>
">
                <span class="helptext">The database used to store the bug genie tables <i>(must already exist!)</i></span>
            </dd>
        </dl>
        <div style="padding-top: 20px; clear: both; text-align: center;">
            <label for="continue_button" style="font-size: 13px; margin-right: 10px;">Click this button to test the database connection details</label>
            <img src="iconsets/oxygen/spinning_30.gif" id="next_indicator" style="display: none; vertical-align: middle; margin-left: 10px;">
            <input type="submit" id="continue_button" onclick="$('continue_button').hide();$('next_indicator').show();" value="Continue">
        </div>
    </form>
    <p id="connection_status"></p>
</div>
<?php 
include_component('installation/footer');
<li style="vertical-align: middle; clear: both; height: 20px;">
	<?php 
echo image_tag('spinning_20.gif', array('id' => 'article_favourite_indicator_' . $article->getId() . '_' . $user->getID(), 'style' => 'display: none; float: left; margin-right: 5px;'));
?>
	<?php 
echo image_tag('star_faded_small.png', array('id' => 'article_favourite_faded_' . $article->getId() . '_' . $user->getID(), 'style' => 'cursor: pointer; display: none; float: left; margin-right: 5px;', 'onclick' => "TBG.Issues.toggleFavourite('" . make_url('toggle_favourite_article', array('article_id' => $article->getID(), 'user_id' => $user->getID())) . "', '" . $article->getID() . '_' . $user->getID() . "');"));
?>
	<?php 
echo image_tag('star_small.png', array('id' => 'article_favourite_normal_' . $article->getId() . '_' . $user->getID(), 'style' => 'cursor: pointer; float: left; margin-right: 5px;', 'onclick' => "TBG.Issues.toggleFavourite('" . make_url('toggle_favourite_article', array('article_id' => $article->getID(), 'user_id' => $user->getID())) . "', '" . $article->getID() . '_' . $user->getID() . "');"));
?>
	<?php 
include_component('main/userdropdown', compact('user'));
?>
</li>
示例#9
0
<div class="cpanel">
  <?php 
foreach ($items as $key => $item) {
    ?>
  <?php 
    if (sfAdminDash::hasPermission($item, $sf_user)) {
        ?>
  <div style="float: left">
    <?php 
        include_component('sfAdminDash', 'dash_item', array('item' => $item, 'key' => $key));
        ?>
  </div>
  <?php 
    }
    ?>
  <?php 
}
?>
  <div class="clear"></div>
</div>
示例#10
0
<div id="attach_file" class="backdrop_box large">
    <div class="backdrop_detail_header">
        <?php 
if ($mode == 'issue') {
    ?>
            <?php 
    echo __('Attach one or more file(s) to this issue');
    ?>
        <?php 
} elseif ($mode == 'article') {
    ?>
            <?php 
    echo __('Attach one or more file(s) to this article');
    ?>
        <?php 
}
?>
    </div>
    <?php 
include_component('main/' . $uploader . 'uploader', compact('mode', 'issue', 'article'));
?>
</div>
<div class="backdrop_box large">
	<div class="backdrop_detail_header">
		<?php 
echo __('Permission details for "%itemname"', array('%itemname' => $item_name));
?>
	</div>
	<div id="backdrop_detail_content" class="backdrop_detail_content">
		<?php 
echo __('Specify who can set this value for issues.');
?>
		<?php 
include_component('configuration/permissionsinfo', array('key' => $item_key, 'mode' => 'datatype', 'target_id' => $item_id, 'module' => 'core', 'access_level' => $access_level));
?>
	</div>
	<div class="backdrop_detail_footer">
		<a href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.reset();"><?php 
echo __('Close');
?>
</a>
	</div>
</div>
示例#12
0
    However, it seems JavaScript is either disabled or not supported by your
    browser. <br />
    To use Alumni Sangam, enable JavaScript by changing your browser options.<br />
  </div>
</center>
</noscript>
<div class="container">
  <div class="mainDiv">
  	<div class="globalheader">
    	<?php 
include_component('home', 'globalheader');
?>
    </div>
    <div class="header">
      <?php 
include_component('home', 'header');
?>
    </div>
    <div class="content">
      <div class="leftmenu">
        <div class="leftmenucontent">
          <?php 
if (has_slot('leftmenu')) {
    ?>
          	<?php 
    include_slot('leftmenu');
    ?>
          <?php 
}
?>
        </div>
示例#13
0
<script type="text/javascript">
var step = '<?php 
echo $step;
?>
';
</script>

<div id="main" class="data-form <?php 
echo $step;
?>
">
	<div id="right" class="column column-40 column-right">
		<?php 
include_component('com_stepprogress', 'run', array('user' => $user));
?>
	</div>
	
	<div id="left" class="wrap-inside column column-60 column-right">
		<form id="form-data" action="" method="post">
			<h1 class="step-title">Payment Confirmation</h1>
			<div class="cat enquiry-type">
				<p class="cat-title">
				Please Select your Payment Method and Your Payment Date.<br />
				Your Payment will be process maximum 24 hours by our operator after you submit the form
				</p>
				<table class="table-form" border="0">
					<tr>
						<th>Payment Mehod</th>
						<td>
							<select name="payment_method" class="field-payment_method">
								<option select>-- Please Choose One --</option>
<?php

include_component('project/recentactivities', array('id' => '10_recent_issues', 'issues' => $issues, 'empty' => __('No issues of this type has been posted yet'), 'default_displayed' => true));
TBGEvent::createNew('core', 'viewissue_left_after_attachments', $issue)->trigger();
?>
<fieldset id="viewissue_related_information_container">
	<legend>
		<?php 
echo image_tag('spinning_16.gif', array('style' => 'display: none;', 'id' => 'related_issues_indicator')) . __('Child issues (%count)', array('%count' => '<span id="viewissue_related_issues_count">' . count($issue->getChildIssues()) . '</span>'));
?>
	</legend>
	<div id="viewissue_related_information">
		<?php 
include_component('main/relatedissues', array('issue' => $issue));
?>
	</div>
</fieldset>
<fieldset id="viewissue_duplicate_issues_container">
	<legend>
		<?php 
echo image_tag('spinning_16.gif', array('style' => 'display: none;', 'id' => 'duplicate_issues_indicator')) . __('Duplicate issues (%count)', array('%count' => '<span id="viewissue_duplicate_issues_count">' . $issue->getNumberOfDuplicateIssues() . '</span>'));
?>
	</legend>
	<div id="viewissue_duplicate_issues">
		<?php 
include_component('main/duplicateissues', array('issue' => $issue));
?>
	</div>
</fieldset>
<?php 
TBGEvent::createNew('core', 'viewissue_left_bottom', $issue)->trigger();
?>
<div style="clear: both; margin-bottom: 5px;"> </div>
<div id="messagebar" class="messageBalloon_<?php 
echo $messageType;
?>
" >
    <span>
<?php 
if (!empty($messageType)) {
    echo $message;
}
?>
    </span>
</div>

<div id="mainDiv"> 
    <?php 
include_component('core', 'ohrmList');
?>
	
</div> 

<div id="deleteConfirmation" title="<?php 
echo __('OrangeHRM - Confirmation Required');
?>
" style="display: none;">
    <?php 
echo __(CommonMessages::DELETE_CONFIRMATION);
?>
    <div class="dialogButtons">
        <input type="button" id="dialogDeleteBtn" class="savebutton" value="<?php 
echo __('Ok');
?>
<h1>Horario para el Docente: <?php 
echo $docente->getApellido() . " " . $docente->getNombre();
?>
</h1>
<?php 
include_component('cal', $view, array('archivo' => $archivo, 'date' => $date_component, 'verPorDia' => 'view/verPorDia', 'verPorSemana' => 'view/verPorSemana', 'verPorMes' => 'view/verPorMes', 'verPorAnio' => 'view/verPorAnio'));
?>

$tbg_response->setTitle($article_name);
?>
<table style="margin-top: 0px; table-layout: fixed; width: 100%" cellpadding=0 cellspacing=0>
    <tr>
        <td class="side_bar">
            <?php 
include_component('leftmenu', compact('article', 'special'));
?>
        </td>
        <td class="main_area article">
            <a name="top"></a>
            <?php 
if ($component) {
    ?>
                <?php 
    include_component("publish/special{$component}", compact('projectnamespace'));
    ?>
            <?php 
} else {
    ?>
                <div class="redbox" style="margin: 15px;">
                    <?php 
    echo __('This special page does not exist');
    ?>
                </div>
            <?php 
}
?>
        </td>
    </tr>
</table>
    } else {
        ?>
                                <?php 
        $output = array();
        foreach ($step->getOutgoingTransitions() as $transition) {
            $output[] = get_component_html('configuration/workflowtransition', array('transition' => $transition, 'direction' => 'outgoing', 'step' => $step));
        }
        echo join($glue, $output);
        ?>
                            <?php 
    }
    ?>
                        </div>
                    </div>
                    <?php 
    include_component('configuration/workflowaddtransition', array('step' => $step));
    ?>
                    <div id="workflow_details_step">
                        <dl id="step_details_info">
                            <dt><?php 
    echo __('Name');
    ?>
</dt>
                            <dd><?php 
    echo $step->getName();
    ?>
</dd>
                            <dt><?php 
    echo __('Description');
    ?>
</dt>
示例#20
0
            <div class="help">
              <?php 
    echo $form["mark"]->renderHelp();
    ?>
            </div>
            <div style="clear: both; margin-top: 1px;"></div>
            <?php 
    echo $form["date"]->renderError();
    ?>
            <?php 
    echo $form["date"]->renderLabel();
    echo $form["date"];
    ?>

            <?php 
    include_component('course_student_mark', 'component_marks_info', array('course_subject_student' => $form->getObject()->getStudentRepprovedCourseSubject()->getCourseSubjectStudent()));
    ?>
          </div>

        <?php 
}
?>
      </fieldset>

      <ul class="sf_admin_actions">
        <li><?php 
echo link_to(__('Back'), '@examination_repproved_subject', array('class' => 'sf_admin_action_go_back'));
?>
</li>
        <?php 
if ($examination_repproved_subject->canEditCalifications()) {
    <div class="header">Special:<?php 
echo $projectnamespace != '' ? "<span class='faded_out'>{$projectnamespace}</span>" : '';
?>
All Pages</div>
        <div class="greybox" style="margin: 15px 0;">
            <?php 
if (\thebuggenie\core\framework\Context::isProjectContext()) {
    ?>
                <?php 
    echo __('Note: This page lists all articles for "%project_name". For a list of global articles, see %all_pages', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName(), '%all_pages' => link_tag(make_url('publish_article', array('article_name' => "Special:AllPages")), 'Special:AllPages')));
    ?>
            <?php 
} else {
    ?>
                <?php 
    echo __('Note: This page lists all articles in the global scope. For a list of project articles, see the corresponding "All pages" for that specific project');
    ?>
            <?php 
}
?>
        </div>
    <p>
        <?php 
echo __('Below is a listing of all pages.');
?>
    </p>
    <?php 
include_component('publish/articleslist', compact('articles'));
?>
</div>
示例#22
0
<?php

if ($field->isPartial()) {
    ?>
  <?php 
    include_partial('company/' . $name, array('form' => $form, 'attributes' => $attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes));
} elseif ($field->isComponent()) {
    ?>
  <?php 
    include_component('company', $name, array('form' => $form, 'attributes' => $attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes));
} else {
    ?>
  <div class="<?php 
    echo $class;
    $form[$name]->hasError() and print ' errors';
    ?>
">
    <?php 
    echo $form[$name]->renderError();
    ?>
    <div>
      <?php 
    echo $form[$name]->renderLabel($label);
    ?>

      <div class="content"><?php 
    echo $form[$name]->render($attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes);
    ?>
</div>

      <?php 
示例#23
0
<div class="span-6">
  <?php 
include_component("static", "userShortcuts", array("sortedBy" => $sortedBy, "viewingCurrent" => null, "noSort" => false));
?>
</div>

<div class="span-17 last">
  Your request was succesfully processed! 
  One of our staff members will contact you to confirm the details.
</div>
示例#24
0
echo __('Visit Site');
?>
</a></span>
</div>

<?php 
if ($sf_user->isAuthenticated()) {
    ?>
<div id="menu">
<ul>
<li><?php 
    echo link_to(__('Top page'), '@homepage');
    ?>
</li>
<?php 
    include_component('default', 'sideMenu');
    ?>
<li><?php 
    echo link_to(__('Logout'), 'default/logout');
    ?>
</li>
</ul>
</div>
<?php 
}
?>

<div id="body">
<?php 
if (has_slot('submenu')) {
    ?>
示例#25
0
                            </div>

                        </div>     
                    
                    </div>
                    <!--Partie permettant de rendre l'arbre des fonctions à l'utilisateur-->
                    <?php 
include_partial('versionLeftSide', array('ei_project' => $ei_project, 'paramsForUrl' => $paramsForUrl, 'defaultPackage' => isset($defaultPackage) ? $defaultPackage : null, 'ei_scenario_package' => isset($ei_scenario_package) ? $ei_scenario_package : null, 'form' => $form));
?>
 
                </div>
            </div>

            <div class="tab-pane" id="blockPropertiesParameters">
                <?php 
include_component("block", "showParams", array("form" => $formEditBlockParams, 'project_id' => $project_id, 'project_ref' => $project_ref, 'profile_name' => $profile_name, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'ei_version_structure_id' => $ei_version_structure->getId(), 'ei_version_id' => $ei_version->getId(), 'ei_block_parameters' => $ei_block_parameters, 'ei_scenario_id' => $ei_scenario->getId()));
?>
            </div>
        </div>


    </div>

</div>

 
<!--Fenêtre modale de suppression d'une version de scénario  -->
<div id="delete_eiversion_modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="delete_eiversion_modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
示例#26
0
<?php

include_component('icalVisualizador', $view, array('archivo' => $archivo, 'date_component' => $date_component));
示例#27
0
    echo 'Added by ' . link_to("Sean Grove", '#') . ' on ' . format_date($file->getCreatedAt());
    ?>
</span><?php 
    echo link_to($file->getName(), "@download_file?id=" . $file->getUuid());
    ?>
          <div style="border-top:1px solid white;margin-top:2px;padding-top:4px;"><?php 
    echo $file->getDescription();
    ?>
</div>
        </div>

      <?php 
}
?>
    </div>
  </div>

  <div id='comments-holder' style='padding:4px;width:48%;float:left;'>
    <h3><a id="comments"><?php 
echo ucwords(__('Comments'));
?>
</a></h3>
    <?php 
include_component('sfComment', 'commentList', array('object' => $task));
if ($sf_user->isAuthenticated()) {
    include_component('sfComment', 'commentForm', array('object' => $task));
}
?>
  </div>
  <div style="clear:both;">&nbsp;</div>
</button>
								</div>
								<div id="publish_<?php 
            echo $namespace;
            ?>
_editarticle_permissions" style="padding: 10px; width: 700px; display: none;">
									<?php 
            include_component('configuration/permissionsinfo', array('key' => 'editarticle', 'mode' => 'module_permissions', 'target_id' => $namespace, 'module' => 'publish', 'access_level' => TBGSettings::ACCESS_FULL));
            ?>
								</div>
								<div id="publish_<?php 
            echo $namespace;
            ?>
_deletearticle_permissions" style="padding: 10px; width: 700px; display: none;">
									<?php 
            include_component('configuration/permissionsinfo', array('key' => 'deletearticle', 'mode' => 'module_permissions', 'target_id' => $namespace, 'module' => 'publish', 'access_level' => TBGSettings::ACCESS_FULL));
            ?>
								</div>
							</li>
						<?php 
        }
        ?>
						</ul>
					<?php 
    } else {
        ?>
						<div class="rounded_box red borderless" style="margin: 0 5px 5px 5px; padding: 7px; font-size: 14px; color: #FFF;">
							<?php 
        echo __('You do not have access to edit permissions for this article');
        ?>
						</div>
 * reserved to OrangeHRM Inc.
 *
 * You should have received a copy of the OrangeHRM Enterprise  proprietary license file along
 * with this program; if not, write to the OrangeHRM Inc. 538 Teal Plaza, Secaucus , NJ 0709
 * to get the file.
 *
 */
?>

<?php 
use_javascript(plugin_web_path('orangehrmAdminPlugin', 'js/viewJobTitleListSuccess'));
?>

<div id="jobTitleList">
    <?php 
include_component('core', 'ohrmList', $parmetersForListCompoment);
?>
</div>

<!-- comment dialog -->

<div id="commentDialog" title="<?php 
echo __('Job Description');
?>
" style="display: none">
    <form action="updateComment" method="post" id="frmCommentSave">
        <input type="hidden" id="leaveId" />
        <input type="hidden" id="leaveOrRequest" />
        <textarea name="leaveComment" id="leaveComment" cols="40" rows="10" class="commentTextArea"></textarea>
        <br class="clear" />
        <div><input type="button" id="commentCancel" class="plainbtn" value="<?php 
示例#30
0
" action="<?php 
        echo make_url('account_save_module_settings', array('target_module' => $module_name));
        ?>
" onsubmit="updateProfileModuleSettings('<?php 
        echo make_url('account_save_module_settings', array('target_module' => $module_name));
        ?>
', '<?php 
        echo $module_name;
        ?>
'); return false;" method="post" id="profile_<?php 
        echo $module_name;
        ?>
_form">
								<div class="rounded_box borderless lightgrey cut_bottom" style="margin: 5px 0 0 0; width: 690px; border-bottom: 0;">
									<?php 
        include_component("{$module_name}/accountsettings", array('module' => $module));
        ?>
								</div>
								<div class="rounded_box iceblue borderless cut_top" style="margin: 0 0 5px 0; width: 690px; border-top: 0; padding: 8px 5px 2px 5px; height: 25px;">
									<div style="float: left; font-size: 13px; padding-top: 2px;"><?php 
        echo __('Click "%save%" to save your %module_settings_name% settings', array('%save%' => __('Save'), '%module_settings_name%' => $module->getAccountSettingsName()));
        ?>
</div>
									<input type="submit" id="submit_settings_button" style="float: right; padding: 0 10px 0 10px; font-size: 14px; font-weight: bold;" value="<?php 
        echo __('Save');
        ?>
">
									<span id="profile_<?php 
        echo $module_name;
        ?>
_save_indicator" style="display: none; float: right;"><?php