当前位置: 首页>>代码示例>>PHP>>正文


PHP yes_no_widget函数代码示例

本文整理汇总了PHP中yes_no_widget函数的典型用法代码示例。如果您正苦于以下问题:PHP yes_no_widget函数的具体用法?PHP yes_no_widget怎么用?PHP yes_no_widget使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了yes_no_widget函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: label_tag

?>
  </div>
<div id="wiki-options">
<?php 
echo label_tag(lang('wiki set as index page'), 'wikiFormIndexYes');
echo yes_no_widget('wiki[project_index]', 'wikiFormIndex', $page->getProjectIndex(), lang('yes'), lang('no'));
echo label_tag(lang('wiki set as sidebar page'), 'wikiFormSidebarYes');
echo yes_no_widget('wiki[project_sidebar]', 'wikiFormSidebar', $page->getProjectSidebar(), lang('yes'), lang('no'));
echo label_tag(lang('wiki publish page'), 'wikiFormPublishYes');
echo yes_no_widget('wiki[publish]', 'wikiFormPublish', $page->getPublish(), lang('yes'), lang('no'));
if ($page->canLock(logged_user())) {
    ?>
<div id="wiki-field-lockpage">
<?php 
    echo label_tag(lang('wiki lock page'), 'wikiFormLockPageYes');
    echo yes_no_widget('wiki[locked]', 'wikiFormLockPage', $page->getLocked(), lang('yes'), lang('no'));
    ?>
<div>
<?php 
    if ($page->getLocked()) {
        //echo lang('wiki page locked');
        echo lang('wiki page locked by on', $page->getLockedByUser()->getUsername(), format_datetime($page->getLockedOn()));
    } else {
        echo lang('wiki page not locked');
    }
    ?>
</div>
</div>
<?php 
}
// if
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:edit.php

示例2: render

 /**
  * Render form control
  *
  * @param string $control_name
  * @return string
  */
 function render($control_name)
 {
     return yes_no_widget($control_name, 'yes_no_' . $this->getConfigOption()->getName(), $this->getValue(), lang('yes'), lang('no'));
 }
开发者ID:ukd1,项目名称:Project-Pier,代码行数:10,代码来源:BoolConfigHandler.class.php

示例3: yes_no_widget

				
					<td><?php 
    echo $dim_changed ? $dimension_name : "";
    ?>
</td>
					
					<td><span class="link-ico <?php 
    echo $ot->getIconClass();
    ?>
"><?php 
    echo $ot_name;
    ?>
</span></td>
					
					<td class="center"><?php 
    echo yes_no_widget('enabled_dots[' . $dimension_ot->getDimensionId() . '][' . $dimension_ot->getObjectTypeId() . '][enabled]', $genid, $dimension_ot->getEnabled(), lang('enabled'), lang('disabled'));
    ?>
</td>
				</tr>
				<?php 
    $last_dim = $dimension_ot->getDimensionId();
}
?>
			</table>
		  </div>
			<?php 
echo submit_button(lang('save changes'));
?>
		</form>
	</div>
</div>
开发者ID:abhinay100,项目名称:feng_app,代码行数:30,代码来源:dimension_options.php

示例4: lc

?>
 <?php 
echo lc(lang('milestone'));
?>
 <b><?php 
echo clean($milestone->getName());
?>
</b></div>
    
  <div>
    <label><?php 
echo lang('confirm delete milestone');
?>
</label>
    <?php 
echo yes_no_widget('deleteMilestone[really]', 'deleteMilestoneReallyDelete', false, lang('yes'), lang('no'));
?>
  </div>
    
  <div>
    <?php 
echo label_tag(lang('password'));
?>
    <?php 
echo password_field('deleteMilestone[password]', null, array('id' => 'loginPassword', 'class' => 'medium'));
?>
  </div>
    
  <?php 
echo submit_button(lang('delete milestone'));
?>
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:del_milestone.php

示例5: yes_no_widget

    echo yes_no_widget('message[comments_enabled]', $genid . 'fileFormEnableComments', array_var($message_data, 'comments_enabled', true), lang('yes'), lang('no'), 35);
    ?>
</div>
			<div class="optionDesc"><?php 
    echo lang('enable comments desc');
    ?>
</div>
		</div>

		<div class="objectOption">
			<div class="optionLabel"><label><?php 
    echo lang('enable anonymous comments');
    ?>
:</label></div>
			<div class="optionControl"><?php 
    echo yes_no_widget('message[anonymous_comments_enabled]', $genid . 'fileFormEnableAnonymousComments', array_var($message_data, 'anonymous_comments_enabled', false), lang('yes'), lang('no'), 40);
    ?>
</div>
			<div class="optionDesc"><?php 
    echo lang('enable anonymous comments desc');
    ?>
</div>
		</div>
	</fieldset>
	</div>
	<?php 
}
// if
?>

	<div id='<?php 
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:add_message.php

示例6: lang

			- <a href="#" class="option" onclick="og.toggleAndBolden('<?php echo $genid . $category['name'] ?>', this)"><?php echo lang($category['name'])?></a>
		<?php } ?>
	  </div>
  </div>

  <div class="adminSeparator"></div>
  <div class="adminMainBlock">
  
  <div id="<?php echo $genid ?>add_user_advanced" style="display:none">
  	<fieldset>
  		<legend><?php echo lang('advanced')?></legend>
  		<div class="formBlock" onclick="og.showSelectTimezone('<?php echo $genid ?>')">
			<?php echo label_tag(lang('timezone'), 'userFormTimezone', false)?>
			<span class="desc"><?php echo lang('auto detect user timezone') ?></span>
			<div id ="<?php echo $genid?>detectTimeZone">
			<?php echo yes_no_widget('user[autodetect_time_zone]', 'userFormAutoDetectTimezone', user_config_option('autodetect_time_zone', null, $user->getId()), lang('yes'), lang('no')) ?>
			<div id="<?php echo $genid?>selecttzdiv" <?php if (user_config_option('autodetect_time_zone', null, $user->getId())) echo 'style="display:none"'; ?>>
			<?php echo select_timezone_widget('user[timezone]', array_var($user_data, 'timezone'), 
				array('id' => 'userFormTimezone', 'class' => 'long', 'tabindex' => '600')) ?>
			</div>
			</div>
			<script type="text/javascript">
			og.addUserTypeChange('<?php echo $genid?>',$(':input[name$="user[type]"]').val());
			og.showSelectTimezone = function(genid)	{
				check = document.getElementById("userFormAutoDetectTimezoneYes");
				div = document.getElementById(genid + "selecttzdiv");
				if (check.checked == true){
					div.style.display= "none";
				}else{
					div.style.display= "";
				}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:add_user.php

示例7: label_tag

		  <?php 
    }
    ?>
		  <div class="formBlock">
			  <div id="<?php 
    echo $genid . 'createPersonalWS';
    ?>
" onclick="og.showSelectPersonalWS('<?php 
    echo $genid;
    ?>
')">
			      <?php 
    echo label_tag(lang('use previous personal workspace'));
    ?>
			      <?php 
    echo yes_no_widget('user[createPersonalProject]', 'user[createPersonalProject]', false, lang('use an existing workspace'), lang('create personal workspace'), '1500');
    ?>
			      <br /><span class="desc"><?php 
    echo lang('use previous personal workspace desc');
    ?>
</span>
			      <div class="ico-color0" style="padding-left:18px" id="newWsName"></div>
			    <div id="<?php 
    echo $genid;
    ?>
selectPersonalProject" style="display:none">
			      	<?php 
    echo label_tag(lang('select personal workspace'), null, true);
    ?>
			      	<?php 
    echo select_project2('user[personal_project]', $user->getPersonalProject() ? $user->getPersonalProject()->getId() : 0, $genid);
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:add_user.php

示例8: button

?>

</td><td style="padding:5px;vertical-align:bottom;">
	<?php 
echo button(lang('add'), 'A', array('style' => 'margin-top:0px;margin-left:10px', 'id' => $genid . 'addPeople', 'tabindex' => '400', 'onclick' => 'if(og.validateCompany()) og.onAddPeopleToShare();'));
?>
	
</td></tr></table>

	<br>
    <div class="desc"><?php 
echo lang('allow people edit object');
?>
</div>
    <?php 
echo yes_no_widget('share_data[allow_edit]', $genid . 'allow_edit', false, lang('yes'), lang('no'), 400);
?>
	
</fieldset>

<?php 
echo submit_button(lang('share'), 's', array('style' => 'margin-top:0px;margin-left:10px', 'id' => $genid . 'shareSubmit2', 'tabindex' => '500'));
?>

</div>
</form>
</div>
<script>
	Ext.get('<?php 
echo $genid;
?>
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:share.php

示例9: label_tag

  <div class="formBlock">
    <?php 
echo label_tag(lang('send new account notification'), null, true);
?>
    <?php 
echo yes_no_widget('user[send_email_notification]', 'userFormEmailNotification', array($user_data, 'send_email_notification'), lang('yes'), lang('no'));
?>
    <br /><span class="desc"><?php 
echo lang('send new account notification desc');
?>
</span>
  </div>

  <div class="formBlock">
    <?php 
echo label_tag(lang('add welcome task'), null, true);
?>
    <?php 
echo yes_no_widget('user[add_welcome_task]', 'userFormAddWelcomeTask', array($user_data, 'add_welcome_task'), lang('yes'), lang('no'));
?>
    <br /><span class="desc"><?php 
echo lang('add welcome task desc');
?>
</span>
  </div>

  <?php 
echo submit_button($user->isNew() ? lang('add user') : lang('edit user'));
?>
</form>
开发者ID:noxstyle,项目名称:Project-Pier,代码行数:30,代码来源:add_user.php

示例10: strtolower

?>
</b> from <?php 
echo strtolower(lang('task list'));
?>
 <b><?php 
echo clean($task_list->getName());
?>
</div>

  <div>
    <label><?php 
echo lang('confirm delete task');
?>
</label>
    <?php 
echo yes_no_widget('deleteTask[really]', 'deleteTaskReallyDelete', false, lang('yes'), lang('no'));
?>
  </div>

  <div>
    <?php 
echo label_tag(lang('password'));
?>
    <?php 
echo password_field('deleteTask[password]', null, array('id' => 'loginPassword', 'class' => 'medium'));
?>
  </div>

  <?php 
echo submit_button(lang('delete task'));
?>
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:del_task.php

示例11: strtolower

?>
 <?php 
echo strtolower(lang('message'));
?>
 <b><?php 
echo clean($message->getTitle());
?>
</b></div>

  <div>
    <label><?php 
echo lang('confirm delete message');
?>
</label>
    <?php 
echo yes_no_widget('deleteMessage[really]', 'deleteMessageReallyDelete', false, lang('yes'), lang('no'));
?>
  </div>

  <div>
    <?php 
echo label_tag(lang('password'));
?>
    <?php 
echo password_field('deleteMessage[password]', null, array('id' => 'loginPassword', 'class' => 'medium'));
?>
  </div>

  <?php 
echo submit_button(lang('delete message'));
?>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:del_message.php

示例12: strtolower

?>
 <?php 
echo strtolower(lang('folder'));
?>
 <b><?php 
echo clean($folder->getName());
?>
</b></div>
    
  <div>
    <label><?php 
echo lang('confirm delete folder');
?>
</label>
    <?php 
echo yes_no_widget('deleteFolder[really]', 'deleteFolderReallyDelete', false, lang('yes'), lang('no'));
?>
  </div>
    
  <div>
    <?php 
echo label_tag(lang('password'));
?>
    <?php 
echo password_field('deleteFolder[password]', null, array('id' => 'loginPassword', 'class' => 'medium'));
?>
  </div>
    
  <?php 
echo submit_button(lang('delete folder'));
?>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:del_folder.php

示例13: lang

  <div><?php 
echo lang('about to delete');
?>
 <b><?php 
echo clean($project->getName());
?>
</b></div>

  <div>
    <label><?php 
echo label_tag(lang('confirm delete project'));
?>
</label>
    <?php 
echo yes_no_widget('deleteProject[really]', 'deleteProjectReallyDelete', false, lang('yes'), lang('no'));
?>
  </div>

  <div>
    <?php 
echo label_tag(lang('password'));
?>
    <?php 
echo password_field('deleteProject[password]', null, array('id' => 'loginPassword', 'class' => 'medium'));
?>
  </div>

  <?php 
echo submit_button(lang('delete project'));
?>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:30,代码来源:del_project.php

示例14: label_tag

echo label_tag(lang('summarize by', null, false));
?>
        <?php 
echo yes_no_widget('prefs_form[reports_summarized]', 'reportFormSummarizedBy', $reminder_prefs->getReportsSummarizedBy(), lang('project'), lang('all'));
?>
        <?php 
echo label_tag(lang('include whom question'), null, false);
?>
        <?php 
echo yes_no_widget('prefs_form[ivsteam2]', 'reportFormDailySummarized', $reminder_prefs->getReportsIncludeEveryone(), lang('for all'), lang('for me'));
?>
        <?php 
echo label_tag(lang('include activity log'), null, false);
?>
        <?php 
echo yes_no_widget('prefs_form[report_activity]', 'reportFormIncludeActivity', $reminder_prefs->getReportsIncludeActivity(), lang('yes'), lang('no'));
?>
        <?php 
echo label_tag(lang('day to send', null, false));
?>
        <?php 
$formOptions = array();
for ($i = $dayOfWeek; $i < $dayOfWeek + 7; $i++) {
    $option_attributes = $reminder_prefs->getReportDay() == $weekArray[$i % 7] ? array('selected' => 'selected') : null;
    $formOptions[] = option_tag(lang($weekArray[$i % 7]), $weekArray[$i % 7], $option_attributes);
}
print select_box('prefs_form[reportDay]', $formOptions);
?>
      </div>	
    </fieldset>
    <?php 
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:edit_preferences.php

示例15: file_field

    ?>
        <?php 
    echo file_field('csv_file', null, array('id' => $genid . 'filenamefield', 'class' => 'title', 'tabindex' => 10, 'size' => '88', "onchange" => 'javascript:og.submitCsv(\'' . $genid . '\')'));
    ?>
    </div>
    <div id="<?php 
    echo $genid;
    ?>
first_record_has_names_div">
    	<table><tr><td><?php 
    echo label_tag(lang('first record contains field names'), $genid . 'first_record_has_names');
    ?>
</td>
    	<td style="padding-left:10px;padding-top:5px;">
    	<?php 
    echo yes_no_widget('first_record_has_names', $genid . 'first_record_has_names', true, lang('yes'), lang('no'), 20);
    ?>
</td></tr></table>
    </div>
    <div id="<?php 
    echo $genid;
    ?>
delimiter_div">
    	<table><tr><td><?php 
    echo label_tag(lang('field delimiter'), $genid . 'delimiter');
    ?>
</td>
    	<td style="padding-left:10px;">
    	<?php 
    echo text_field('delimiter', '', array('id' => $genid . 'delimiter', 'style' => 'width:10px;', 'tabindex' => 30));
    ?>
开发者ID:abhinay100,项目名称:feng_app,代码行数:31,代码来源:csv_import.php


注:本文中的yes_no_widget函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。