} else {
    slot('no_app_alert');
    echo __("You haven't the app.");
    if ($isOwner) {
        ?>
 <?php 
        echo __("The Apps can be added from %0%.", array('%0%' => link_to(__('App Gallery'), '@application_gallery')));
    }
    end_slot();
    op_include_box('NoApp', get_slot('no_app_alert'));
}
?>

<?php 
if ($isOwner) {
    echo sortable_element('order', array('url' => '@application_sort', 'tag' => 'div', 'only' => 'sortable', 'with' => 'Sortable.serialize("order")+"&' . urlencode($form->getCSRFFieldName()) . '=' . urlencode($form->getCSRFToken()) . '"'));
    ?>
<div class="moreInfo">
<ul class="moreInfo">
<li>
<?php 
    echo link_to(__('App Gallery'), '@application_gallery');
    if ($isOwner) {
        if ($isInstallApp) {
            ?>
<li><?php 
            echo link_to(__('Install new App'), '@application_install');
            ?>
</li>
<?php 
        }
Example #2
0
            echo $row;
            ?>
</td>
<?php 
        }
    }
}
?>

<td colspan="2">
<?php 
foreach ($form as $row) {
    if ($row->isHidden()) {
        echo $row;
    }
}
?>
<input type="submit" value="<?php 
echo __('Add');
?>
" />
</td>
</tr>
</form>

</table>

<?php 
$form = new BaseForm();
echo sortable_element('type_' . $type, array('tag' => 'tbody', 'only' => 'sortable', 'url' => 'community/categorySort', 'with' => 'Sortable.serialize("type_' . $type . '")+"&' . urlencode($form->getCSRFFieldName()) . '=' . urlencode($form->getCSRFToken()) . '"'));
<td><?php 
        echo isset($buttonConfig[$name]['imageURL']) ? image_tag($buttonConfig[$name]['imageURL']) : '&nbsp;';
        ?>
</td>
<td><?php 
        echo isset($buttonConfig[$name]['caption']) ? __($buttonConfig[$name]['caption']) : '&nbsp;';
        ?>
</td>
<td><?php 
        echo $button;
        ?>
</td>
</tr>
</tbody>
<?php 
    }
}
?>
</table>
<?php 
echo $buttonConfigForm->renderHiddenFields();
?>
<input type="submit" value="<?php 
echo __('Edit');
?>
" />
</form>
<?php 
use_helper('Javascript');
echo sortable_element('button', array('tag' => 'tbody', 'only' => 'sortable', 'format' => '/^button_(.*)$/', 'url' => 'sns/changeRichTextareaButtonOrder', 'with' => 'Sortable.serialize("button")+"&' . urlencode($sortForm->getCSRFFieldName()) . '=' . urlencode($sortForm->getCSRFToken()) . '"'));
Example #4
0
<td colspan="2">
<?php 
                echo $form->renderHiddenFields();
                ?>
<input type="submit" value="<?php 
                echo __('Add new option');
                ?>
" />
</td>
</form>
<?php 
            }
            ?>
</tr>
</tbody>
<?php 
        }
        ?>
</table>
<?php 
        echo sortable_element('profile_options_' . $value->getId(), array('tag' => 'tbody', 'only' => 'sortable', 'url' => 'profile/sortProfileOption', 'with' => 'Sortable.serialize("profile_options_' . $value->getId() . '")+"&' . urlencode($tokenForm->getCSRFFieldName()) . '=' . urlencode($tokenForm->getCSRFToken()) . '"'));
    }
}
if (!$selectionCount) {
    ?>
<p><?php 
    echo __('No entries can set options.');
    ?>
</p>
<?php 
}
Example #5
0
<?php 
                echo $form['id']->render(), "\n";
                echo $form['profile_id']->render(), "\n";
                ?>
<input type="submit" value="<?php 
                echo __('Delete');
                ?>
" />
</form>
</td>
<?php 
            }
            ?>
</tr>
</tbody>
<?php 
        }
        ?>
</table>
<?php 
        echo sortable_element('profile_options_' . $value->getId(), array('tag' => 'tbody', 'only' => 'sortable', 'url' => 'profile/sortProfileOption'));
    }
}
if (!$selectionCount) {
    ?>
<p><?php 
    echo __('No entries can set options.');
    ?>
</p>
<?php 
}
Example #6
0
<td><?php 
        echo isset($buttonConfig[$name]['imageURL']) ? image_tag($buttonConfig[$name]['imageURL']) : '&nbsp;';
        ?>
</td>
<td><?php 
        echo isset($buttonConfig[$name]['caption']) ? __($buttonConfig[$name]['caption']) : '&nbsp;';
        ?>
</td>
<td><?php 
        echo $button;
        ?>
</td>
</tr>
</tbody>
<?php 
    }
}
?>
</table>
<?php 
echo $buttonConfigForm->renderHiddenFields();
?>
<input type="submit" value="<?php 
echo __('Edit');
?>
" />
</form>
<?php 
use_helper('Javascript');
echo sortable_element('button', array('tag' => 'tbody', 'only' => 'sortable', 'format' => '/^button_(.*)$/', 'url' => 'sns/changeRichTextareaButtonOrder'));
Example #7
0
</form>
<td>
<form action="<?php 
            echo url_for('navigation/delete?app=' . $sf_request->getParameter('app', 'pc') . '&id=' . $form->getObject()->getId());
            ?>
" method="post">
<?php 
            echo $deleteForm;
            ?>
<input type="submit" value="<?php 
            echo __('Delete');
            ?>
" />
</form>
</td>
<?php 
        }
        ?>
</tr>
</tbody>
<?php 
    }
    ?>
</table>

<?php 
    echo sortable_element('type_' . str_replace(' ', '_', $type), array('tag' => 'tbody', 'only' => 'sortable', 'url' => 'navigation/sort', 'with' => 'Sortable.serialize("type_' . str_replace(' ', '_', $type) . '")+"&' . urlencode($sortForm->getCSRFFieldName()) . '=' . urlencode($sortForm->getCSRFToken()) . '"'));
    ?>

<?php 
}
Example #8
0
echo ucfirst($type);
?>
">
<?php 
if ($gadgets instanceof sfOutputEscaperArrayDecorator) {
    foreach ($gadgets as $gadget) {
        ?>
<div class="sortable" id="plot<?php 
        echo ucfirst($type);
        ?>
_gadget_<?php 
        echo $gadget->getId();
        ?>
">
<?php 
        echo link_to_function(__($gadgetConfig[$gadget->getName()]['caption']['ja_JP']), 'showModalOnParent(\'' . url_for('design/editGadget?id=' . $gadget->getId()) . '\')');
        ?>
</div>
<?php 
    }
}
?>
<div class="emptyGadget">
<?php 
echo link_to_function(__('ガジェットを追加'), 'showModalOnParent(\'' . url_for('design/addGadget?type=' . $type) . '\')');
?>
</div>
</div>
<?php 
echo sortable_element('plot' . ucfirst($type), array('only' => 'sortable', 'tag' => 'div', 'onUpdate' => 'function(s){insertHiddenTags(\'' . $type . '\', Sortable.sequence(s, s.id))}'));
        }
    }
    echo sortable_element('Center', array('tag' => 'div', 'handle' => 'partsHeading', 'onChange' => 'function(obj){storeSort(obj)}'));
}
?>

<?php 
if (isset($bottomGadgets)) {
    slot('op_bottom');
    foreach ($bottomGadgets as $gadget) {
        if ($gadget->isEnabled()) {
            include_component($gadget->getComponentModule(), $gadget->getComponentAction(), array('gadget' => $gadget));
        }
    }
    end_slot();
    echo sortable_element('Bottom', array('tag' => 'div', 'handle' => 'partsHeading'));
}
?>

<?php 
slot('op_top');
if ($relation->isSelf()) {
    ob_start();
    ?>
<p><?php 
    echo __('Other members look your page like this.');
    ?>
</p>
<p><?php 
    echo __('If you teach your page to other members, please use following URL.');
    ?>
Example #10
0
<?php 
        } else {
            ?>
<td><input type="submit" value="<?php 
            echo __('Edit');
            ?>
" /></td>
</form>
<td><form action="<?php 
            echo url_for('navigation/delete?app=' . $sf_request->getParameter('app', 'pc') . '&id=' . $form->getObject()->getId());
            ?>
" method="post" /><input type="submit" value="<?php 
            echo __('Delete');
            ?>
" /></form></td>
<?php 
        }
        ?>
</tr>
</tbody>
<?php 
    }
    ?>
</table>

<?php 
    echo sortable_element('type_' . str_replace(' ', '_', $type), array('tag' => 'tbody', 'only' => 'sortable', 'url' => 'navigation/sort'));
    ?>

<?php 
}
Example #11
0
<?php

use_helper('Validation', 'I18N', 'Javascript');
?>
                
<ul id="pvalue">
    <?php 
$order = $sf_user->getPreference('box_order');
if (!in_array('1', $order)) {
    include "box1.php";
}
foreach ($order as $box_no) {
    include "box{$box_no}.php";
}
?>
</ul>

<?php 
echo sortable_element('pvalue', array('url' => '@set_preference?pname=box_order'));
Example #12
0
} else {
    slot('no_app_alert');
    echo __("You haven't the app.");
    if ($isOwner) {
        ?>
 <?php 
        echo __("The Apps can be added from %0%.", array('%0%' => link_to(__('App Gallery'), '@application_gallery')));
    }
    end_slot();
    op_include_box('NoApp', get_slot('no_app_alert'));
}
?>

<?php 
if ($isOwner) {
    echo sortable_element('order', array('url' => '@application_sort', 'tag' => 'div', 'only' => 'sortable'));
    ?>
<div class="moreInfo">
<ul class="moreInfo">
<li>
<?php 
    echo link_to(__('App Gallery'), '@application_gallery');
    if ($isOwner) {
        if ($isInstallApp) {
            ?>
<li><?php 
            echo link_to(__('Install new App'), '@application_install');
            ?>
</li>
<?php 
        }