Example #1
0
<?php

op_mobile_page_title(__('Add App'), $application->getTitle());
op_include_yesno('yesNo', new BaseForm(), new BaseForm(array(), array(), null), array('body' => __('Do you wish to install this App?') . __('The App might use your profile and your %friend% information.'), 'yes_url' => url_for('@application_add?id=' . $application->getId() . ($sf_params->has('invite') ? '&invite=' . $sf_params->get('invite') : '')), 'no_url' => url_for('@my_application_list'), 'no_method' => 'get', 'align' => 'center'));
<?php

slot('body');
echo __('Generate or reset consumer secret of this app?');
end_slot();
?>

<?php 
op_include_yesno('updateConsumerSecret', new BaseForm(), new BaseForm(array(), array(), false), array('title' => __('Generate or reset consumer secret: %0%', array('%0%' => $application->getTitle())), 'body' => get_slot('body'), 'yes_url' => url_for('@application_update_consumer_secret?id=' . $application->getId()), 'no_url' => url_for('@application_info?id=' . $application->getId()), 'no_method' => 'get'));
<?php

slot('body');
?>
<div>
チャットルームを終了します。<br />
このチャットルームへの書き込みができなくなってしまいますがよろしいですか?<br />
(終了後も書き込みは閲覧できます)
</div>
<?php 
end_slot();
?>

<?php 
op_include_yesno('close_confirm', new BaseForm(), new BaseForm(array(), array(), false), array('title' => '確認', 'body' => get_slot('body'), 'yes_url' => url_for('@chatroom_close?id=' . $room->getId()), 'no_method' => 'get', 'no_url' => url_for($room->isOpened() ? '@chatroom_show?id=' . $room->getId() : '@chatroom_list')));
<?php

$options = array('title' => __('Remove the App') . ": " . $application->getTitle(), 'body' => __('Do you really remove this App?'), 'no_url' => url_for('@my_application_list'), 'no_method' => 'get');
op_include_yesno('ApplicationRemoveConfirm', new BaseForm(), new BaseForm(array(), array(), false), $options);
<?php

op_mobile_page_title(__('Remove the App'), $application->getTitle());
op_include_yesno('yesNo', new BaseForm(), new BaseForm(array(), array(), null), array('body' => __('Do you really remove this App?'), 'no_url' => url_for('@my_application_list'), 'no_method' => 'get', 'align' => 'center'));
<?php

slot('body');
?>
<div>以下の質問を削除します。投票結果も削除されますがよろしいですか?</div>
<div><?php 
echo $question->getTitle();
?>
</div>
<?php 
end_slot();
?>

<?php 
op_include_yesno('delete_confirm', new BaseForm(), new BaseForm(array(), array(), false), array('title' => '削除確認', 'body' => get_slot('body'), 'yes_url' => url_for('@vote_delete?id=' . $question->getId()), 'no_method' => 'get', 'no_url' => url_for('@vote_show?id=' . $question->getId())));
?>