Example #1
0
<div id="btn_menu">
<?php 
if ($is_mypage) {
    echo btn(term('album', 'form.create'), 'album/create', 'mr', true, null, null, null, 'plus', null, null, false);
}
$name = $is_mypage ? '自分' : member_name($member) . 'さん';
$controller = Site_Util::get_controller_name();
if ($controller == 'album') {
    echo btn(sprintf('%sの%sを全て見る', $name, term('album_image')), sprintf('album/member/%d/images', $member->id), 'mr', true, null, null, null, 'picture', null, null, false);
} elseif ($controller == 'image') {
    echo btn(sprintf('%sの%sを全て見る', $name, term('album')), sprintf('album/member/%d', $member->id), 'mr', true, null, null, null, 'picture', null, null, false);
}
?>
</div>
Example #2
0
<?php

echo render('_parts/member_profile', array('is_mypage' => $is_mypage, 'member' => $member, 'member_profiles' => $member_profiles, 'access_from' => $access_from, 'display_type' => !empty($display_type) ? $display_type : 'summary', 'link_uri' => $is_mypage ? 'member/profile' : 'member/profile/' . $member->id, 'is_hide_fallow_btn' => isset($is_hide_fallow_btn) ? $is_hide_fallow_btn : false));
?>

<?php 
if (is_enabled('timeline') && !empty($timeline)) {
    ?>
<h3><?php 
    echo sprintf('%sさんの%s', member_name($member), term('timeline'));
    ?>
</h3>
<?php 
    echo render('timeline::_parts/list', $timeline);
}
Example #3
0
}
$member = Model_Member::check_authority($member_id);
if (isset($liked_timeline_ids)) {
    echo Form::hidden('liked_timeline_ids', json_encode($liked_timeline_ids), array('id' => 'liked_timeline_ids'));
}
?>
<div <?php 
echo Util_Array::conv_array2attr_string($attr);
?>
>
	<div class="row member_contents">
		<div class="col-xs-1"><?php 
echo member_image($member);
?>
</div>
		<div class="col-xs-11">
			<div class="member_info">
				<b class="fullname"><?php 
echo member_name($member, true, true);
?>
</b>
			</div>
			<div class="main">
				<?php 
echo \Timeline\Site_Util::get_article_main_view($timeline_id, $access_from_member_relation, $is_detail);
?>
			</div>
		</div>
	</div>
</div><!-- timelineBox -->
Example #4
0
<div class="profile_img_box well">
	<a class="account-summary account-summary-small" data-nav="profile" href="<?php 
echo Uri::create('member/profile');
?>
">
	<div class="content">
	<div class="account-group js-mini-current-user" data-screen-name="<?php 
echo member_name($u);
?>
">
	<?php 
echo member_image($u, 'M', '');
?>
	<div class="main"><b class="fullname"><?php 
echo member_name($u);
?>
</b></div>
	<small class="metadata"><?php 
echo term('profile');
?>
をみる</small>
	</div>
	</div>
	</a>
</div>
    }
    ?>
		<h3><?php 
    echo _LOGGED_AS;
    ?>
:</h3><?php 
    if ($auth == "0") {
        echo _ANONYMOUS;
        ?>
<br>
			<A HREF="login.php"><?php 
        echo _LOGIN;
        ?>
</A><?php 
    } else {
        member_name($sess[2]);
        ?>
<br>
			<A HREF="login.php?lo=true"><?php 
        echo _LOGOUT;
        ?>
</A><?php 
    }
}
if ($menu == "mbr" || $menu == "all") {
    ?>
		<h3><?php 
    echo _MEMBERS;
    ?>
:</h3>
			<ul><?php 
Example #6
0
if ($parts_attrs_string) {
    ?>
 <?php 
    echo $parts_attrs_string;
}
?>
>
	<div class="row member_contents">
		<div class="col-xs-1"><?php 
echo member_image($u, $size);
?>
</div>
		<div class="col-xs-11">
			<div class="main">
				<b class="fullname"><?php 
echo member_name($u, true);
?>
</b>
				<div class="input"><?php 
echo Form::textarea('body', null, $textarea_attrs);
?>
</div>
<?php 
if (!empty($with_uploader)) {
    if (!isset($files)) {
        $files = array();
    }
    ?>
				<div class="upload hidden">
					<?php 
    echo form_upload_files($files, true, false, 'S', $uploader_selects, 'album', null, null, null, null, 'img', 'success', 'sm');
Example #7
0
        }
        ?>
<div <?php 
        echo Util_Array::conv_array2attr_string($box_attrs);
        ?>
>
<?php 
        $data = array('member' => $comment->member, 'date' => array('datetime' => $comment->created_at), 'is_output_raw_content' => true);
        if (!empty($image_size)) {
            $data['size'] = $image_size;
        }
        if (conf('like.isEnabled')) {
            $data['like_link'] = array('id' => $comment->id, 'post_uri' => \Site_Util::get_api_uri_update_like($like_api_uri_prefix, $comment->id), 'get_member_uri' => \Site_Util::get_api_uri_get_liked_members($like_api_uri_prefix, $comment->id), 'count_attr' => array('class' => 'unset_like_count'), 'count' => $comment->like_count, 'is_liked' => isset($liked_ids) ? in_array($comment->id, $liked_ids) : false);
        }
        if (empty($is_hide_reply_link) && conf('mention.isEnabled', 'notice') && $comment->member) {
            $data['reply_link'] = array('id' => $comment->id, 'class' => 'ml5', 'target_id' => $parent->id, 'member_name' => member_name($comment->member));
        }
        $content_view = View::forge('_parts/member_contents_box', $data);
        $content_view->set_safe('content', convert_body($comment->body, array('nl2br' => isset($nl2br) ? $nl2br : conf('view_params_default.comment.nl2br'), 'is_truncate' => empty($is_detail), 'truncate_width' => empty($is_detail) ? conf('view_params_default.list.comment.trim_width') : null, 'mention2link' => true)));
        echo $content_view->render();
        $is_display_delete_btn = false;
        if (!empty($absolute_display_delete_btn)) {
            $is_display_delete_btn = true;
        } elseif (\Auth::check()) {
            if (!isset($auther_member_ids)) {
                $auther_member_ids = array();
            }
            $auther_member_ids[] = $comment->member_id;
            if (isset($parent->member_id)) {
                $auther_member_ids[] = $parent->member_id;
            }
function announces_print_listing($sub_id, $sel_ann, $dopon, $uoz, $sess)
{
    @($sql_ann = mysql_query("SELECT * FROM uniletim_announces D WHERE {$sel_ann} AND D.ann_oq = '{$dopon}' AND D.ul_group = '{$sess['4']}' ORDER BY D.ann_date"));
    if (mysql_num_rows($sql_ann) > 0) {
        ?>
	
	<table width="360" border="0" cellspacing="0" cellpadding="3"><?php 
        $i = 0;
        while ($row_ann = mysql_fetch_row($sql_ann)) {
            ?>
		
		<TR>
			<TD class="row" class="row">
				<?php 
            echo "{$row_ann['7']}";
            ?>
			</td><?php 
            if ($sess[3] != "timebank") {
                ?>
	
			<TD width="30" align="right" valign="top" class="row">
				<?php 
                echo "{$row_ann['8']}";
                ?>
&nbsp;
			</td><?php 
            }
            ?>
				
			<td width="50" align="right" class="row"><?php 
            if ($uoz == "") {
                member_name($row_ann[1]);
            }
            ?>
			</td>
		</TR><?php 
            $i++;
        }
        ?>
	
	</table><?php 
    }
}
Example #9
0
/**
 * Return the delete mentor assigment form structure.
 *
 * @param $cid The cid of the protege to delete the mentor from.
 * @return The form structure.
*/
function mentor_delete_form($cid)
{
    // Ensure user is allowed to delete mentors
    if (!user_access('mentor_delete')) {
        return NULL;
    }
    // Get corresponding contact data
    $data = crm_get_data('contact', $opts = array('cid' => $cid));
    $contact = $data[0];
    // Construct member name
    $name = member_name($contact['firstName'], $contact['middleName'], $contact['lastName']);
    // Get list of current mentor cids.
    $mentor_cid = $contact['member']['mentorships']['mentor_cids'][0];
    // Construct mentor name (from member/protege)
    $mentor_contact = crm_get_one('contact', $opts = array('cid' => $mentor_cid));
    $mentor_name = theme('contact_name', $mentor_contact);
    // Create form structure
    $form = array('type' => 'form', 'method' => 'post', 'command' => 'mentor_delete', 'hidden' => array('cid' => $cid, 'mentor_cid' => $mentor_cid), 'fields' => array(array('type' => 'fieldset', 'label' => 'Delete Mentor', 'fields' => array(array('type' => 'message', 'value' => '<p>Are you sure you want to delete the member assignment "' . $mentor_name . '"? This cannot be undone.'), array('type' => 'submit', 'value' => 'Delete')))));
    return $form;
}
function services_list_printing($sess, $what)
{
    // page header
    head_printing();
    ?>

	  <table width="650" border="0" cellspacing="0" cellpadding="3" align="center">

	<TR class="td_tmave">   
		<td colspan="5" class="dark">
		<h2><?php 
    //zobrazujeme aktuální nebo staré zprávy
    if ($what == "all") {
        echo _ALL_SERVICES;
        $sort = "ser_recipient like '%'";
    } else {
        echo "->> " . _PAYMENTS . ":";
        $sort = "to_date < NOW()";
    }
    ?>
	</h25> 
      </td>
  
   </TR>
   <TR class="middle">
        <TD width="100"><?php 
    echo _DATE;
    ?>
</TD>
		<TD width="110"><?php 
    echo _SERVICE_RECIPIENT;
    ?>
</TD>
		<TD width="110"><?php 
    echo _SERVICE_PROVIDER;
    ?>
</TD>
		<TD><?php 
    echo _SERVICE;
    ?>
</TD>
		<TD width="70" align=right><?php 
    echo _AMOUNT;
    ?>
</TD>
	</TR>
 <?php 
    $message = MySQL_Query("SELECT * FROM uniletim_services WHERE {$sort} AND ul_group = '{$sess['4']}' ORDER BY ser_time DESC") or die($query_error);
    //vybíráme zprávy - seøazeno podle id
    //vypiseme tabulky se zpravami
    $i = 0;
    while ($entry = MySQL_Fetch_Array($message)) {
        if ($i % 2 == 0) {
            $bgcolor = '';
        } else {
            $bgcolor = " class=row";
        }
        ?>
	<TR <?php 
        echo $bgcolor;
        ?>
>
		<td><?php 
        $ke = Explode("-", $entry[3]);
        echo " " . $ke[2] . ". " . $ke[1] . ". " . $ke[0] . "";
        ?>
</td>
		<td><?php 
        member_name($entry[1]);
        ?>
</td>
	   <td><?php 
        member_name($entry[2]);
        ?>
</td>
		<td><?php 
        echo "{$entry['4']}";
        ?>
</td>
		<td align=right><?php 
        echo "{$entry['5']}";
        ?>
</td>
	</TR>

 <?php 
        $i++;
    }
    // page footer
    foot_printing($sess);
}
function announces_listing($sess, $dopon, $select, $lres, $view_number, $page, $cs, $cs1, $uoz, $rub, $pri, $keyword, $age)
{
    // dark row - name
    ?>
		<col class="col_1">
		<col class="col_2">
		<col class="col_3">
		<col class="col_4">
		<col class="col_5">
		<thead>
		  <tr class="th_main">
			<th><?php 
    echo $lres;
    ?>
</td>
			<th colspan="<?php 
    echo $cs1;
    ?>
">&nbsp;</td>
		  </tr>
		</thead>
    <?php 
    $start = $page * $view_number;
    //first announce for view
    $sort = "ann_oq = '{$dopon}' and {$select}";
    // mysql query
    // query for announces
    @($sqo = mysql_query("SELECT * FROM uniletim_announces WHERE {$sort} AND ul_group = '{$sess['4']}' ORDER BY ann_date DESC LIMIT {$start},{$view_number}")) or die($query_error);
    if (mysql_num_rows($sqo) == 0) {
        echo "<tr><td>" . _NO_ANNOUNCE . "</td></tr>\n";
    } else {
        $i = 0;
        while ($roz = mysql_fetch_row($sqo)) {
            if ($i % 2 == 0) {
                $tb_class = '';
            } else {
                $tb_class = " class=tb_dark";
            }
            // announce content
            ?>
			<tbody <?php 
            echo $tb_class;
            ?>
>
				<tr class="tb_content" <?php 
            echo $bgcolor;
            ?>
>
					<td colspan="<?php 
            echo $cs;
            ?>
">
						<?php 
            echo $roz[7];
            ?>
					</td>
				</tr><?php 
            // announce info
            ?>
				<tr class="tb_info"><?php 
            // author
            if ($uoz == "") {
                ?>
					<td>
						<B><?php 
                echo _FROM;
                ?>
:&nbsp;</B><?php 
                if ($auth != "0") {
                    member_link($roz[1]);
                } else {
                    member_name($roz[1]);
                }
                ?>
					</td><?php 
            }
            ?>
					<td>
						<?php 
            $timed = Date("d.m.Y", $roz[4]);
            echo "{$timed}";
            ?>
					</td><?php 
            // news
            if ($dopon == "news") {
                ?>
					<td>&nbsp;</td>
					<td>&nbsp;</td>	<?php 
            } else {
                ?>
					<td>&nbsp;<?php 
                if ($pri == "") {
                    ?>
						<B><?php 
                    echo _SUBSECTION;
                    ?>
: </B><?php 
                    page_subsection($roz[3], $auth, $sess);
                }
                ?>
					</td><?php 
                // timebank (no price)
                if ($sess[3] == "timebank") {
                    ?>
					<td>&nbsp;</td><?php 
                    // normal
                } else {
                    ?>
					<td align="right">
						<B><?php 
                    echo _PRICE;
                    ?>
: </B><?php 
                    echo "{$roz['8']}";
                    ?>
					</td> <?php 
                }
            }
            // edit or delete announce
            if ($uoz != "") {
                if ($sess[5] >= "2" || $uoz == $sess[2]) {
                    ?>
		           	<td width="50" align=center<?php 
                    echo $bgcolor;
                    ?>
>
						<A HREF="index.php?action=form&type=edit&eid=<?php 
                    echo "{$roz['0']}";
                    ?>
"><?php 
                    echo _CHANGE;
                    ?>
</A>
                  	</td>
		       		<td width="50" align=center<?php 
                    echo $bgcolor;
                    ?>
>
						<A HREF="index.php?action=user&type=delete&did=<?php 
                    echo "{$roz['0']}";
                    ?>
" onclick="return confirm('<?php 
                    echo _RLY_DLT_ANNO;
                    ?>
')"><?php 
                    echo _DELETE;
                    ?>
</A>
        			</b></td><?php 
                }
            }
            ?>
				  </tr>
				</tbody>
			<?php 
            if ($i == 10) {
                break;
            }
            $i++;
        }
    }
    ?>
		<tfoot>
		  <tr class="th_sub">
			<th><?php 
    if ($sess[5] >= "2" & $usoz != "") {
        ?>
					<a HREF="index.php?action=form&type=new&dp=<?php 
        echo "{$dopon}";
        ?>
&rub=<?php 
        echo "{$rub}";
        ?>
&pri=<?php 
        echo "{$pri}";
        ?>
&a_id=<?php 
        echo "{$uoz}";
        ?>
"><?php 
        echo _INSERT;
        ?>
</A><?php 
    } else {
        ?>
					<a HREF="index.php?action=form&type=new&dp=<?php 
        echo "{$dopon}";
        ?>
&rub=<?php 
        echo "{$rub}";
        ?>
&pri=<?php 
        echo "{$pri}";
        ?>
"><?php 
        echo _INSERT;
        ?>
</A><?php 
    }
    ?>
			</th>
			<th colspan="<?php 
    echo $cs1;
    ?>
"align="right">
				<?php 
    // paging of extracts
    $id = "ann_id";
    $table = "uniletim_announces";
    if (isset($uoz)) {
        $link = "index.php?action=user&uoz={$uoz}&page=";
    } elseif (isset($pri)) {
        $link = "index.php?rub={$rub}&pri={$pri}&page=";
    } else {
        $link = "index.php?rub={$rub}&keyword={$keyword}&age={$age}&page=";
    }
    page_counter($id, $table, $sort, $view_number, $sess, $link, $i, $page);
    ?>
				|
  			</th>
		  </tr>
		</tfoot>

<?php 
}
Example #12
0
function member_image($member, $size = 'M', $link_to = 'member', $is_link2raw_file = false, $is_responsive = true)
{
    $link_uri = '';
    if ($member) {
        if ($link_to == 'member') {
            $link_uri = 'member/' . $member->id;
        } elseif ($link_to == 'profile') {
            $link_uri = 'member/profile/' . $member->id;
        } elseif ($link_to) {
            $link_uri = $link_to;
        }
    }
    return img($member ? $member->get_image() : 'm', $size, $link_uri, $is_link2raw_file, member_name($member), true, $is_responsive);
}
Example #13
0
        if ($note->is_published) {
            // note_comment
            list($comments, $comment_next_id, $all_comment_count) = \Note\Model_NoteComment::get_list(array('note_id' => $id), conf('view_params_default.list.comment.limit'), true, false, 0, 0, null, false, true);
            ?>

<div class="comment_info">
<?php 
            // comment_count_and_link
            $link_comment_attr = array('id' => 'link_show_comment_form_' . $id, 'class' => 'js-display_parts link_show_comment_' . $id, 'data-target_id' => 'commentPostBox_' . $id, 'data-hide_selector' => '.link_show_comment_' . $id, 'data-focus_selector' => '#textarea_comment_' . $id);
            echo render('_parts/comment/count_and_link_display', array('id' => $id, 'count' => $all_comment_count, 'link_attr' => $link_comment_attr));
            ?>

<?php 
            // like reply
            if (conf('mention.isEnabled', 'notice') && $note->member) {
                $data_reply_link = array('id' => $note->id, 'target_id' => $note->id, 'member_name' => member_name($note->member));
                echo render('notice::_parts/link_reply', $data_reply_link);
            }
            ?>

<?php 
            // like_count_and_link
            if (conf('like.isEnabled')) {
                $data_like_link = array('id' => $id, 'post_uri' => \Site_Util::get_api_uri_update_like('note', $id), 'get_member_uri' => \Site_Util::get_api_uri_get_liked_members('note', $id), 'count_attr' => array('class' => 'unset_like_count'), 'count' => $note->like_count, 'is_liked' => isset($liked_note_ids) && in_array($id, $liked_note_ids));
                echo render('_parts/like/count_and_link_execute', $data_like_link);
            }
            ?>

<!-- share button -->
<?php 
            if (conf('site.common.shareButton.isEnabled', 'page') && check_public_flag($note->public_flag)) {
Example #14
0
/**
 * Return the themed html for a contact's name.
 *
 * @param $cid The cid of the contact.
 * @return The themed html string.
 */
function theme_member_contact_name($cid)
{
    // Get member data
    $data = member_data(array('cid' => $cid));
    if (count($data) < 1) {
        return '';
    }
    $output = member_name($data[0]['contact']['firstName'], $data[0]['contact']['middleName'], $data[0]['contact']['lastName']);
    return $output;
}
Example #15
0
<?php 
        // thread_comment
        list($comments, $comment_next_id, $all_comment_count) = \Thread\Model_ThreadComment::get_list(array('thread_id' => $id), conf('view_params_default.list.comment.limit'), true, false, 0, 0, null, false, true);
        ?>

<div class="comment_info">
<?php 
        // comment_count_and_link
        $link_comment_attr = array('id' => 'link_show_comment_form_' . $id, 'class' => 'js-display_parts link_show_comment_' . $id, 'data-target_id' => 'commentPostBox_' . $id, 'data-hide_selector' => '.link_show_comment_' . $id, 'data-focus_selector' => '#textarea_comment_' . $id);
        echo render('_parts/comment/count_and_link_display', array('id' => $id, 'count' => $all_comment_count, 'link_attr' => $link_comment_attr));
        ?>

<?php 
        // like reply
        if (conf('mention.isEnabled', 'notice') && $thread->member) {
            $data_reply_link = array('id' => $thread->id, 'target_id' => $thread->id, 'member_name' => member_name($thread->member));
            echo render('notice::_parts/link_reply', $data_reply_link);
        }
        ?>

<?php 
        // like_count_and_link
        if (conf('like.isEnabled')) {
            $data_like_link = array('id' => $id, 'post_uri' => \Site_Util::get_api_uri_update_like('thread', $id), 'get_member_uri' => \Site_Util::get_api_uri_get_liked_members('thread', $id), 'count_attr' => array('class' => 'unset_like_count'), 'count' => $thread->like_count, 'is_liked' => isset($liked_thread_ids) && in_array($id, $liked_thread_ids));
            echo render('_parts/like/count_and_link_execute', $data_like_link);
        }
        ?>

<!-- share button -->
<?php 
        if (conf('site.common.shareButton.isEnabled', 'page') && check_public_flag($thread->public_flag)) {
Example #16
0
}
?>
		</div>
		<div class="col-<?php 
echo $col_class;
?>
-<?php 
echo 12 - $image_col_size;
?>
">
				<<?php 
echo $member_name_tag;
?>
>
					<?php 
echo member_name($member, $display_type != 'detail' ? $profile_page_uri : '', true);
if (conf('memberRelation.follow.isEnabled') && empty($is_hide_fallow_btn) && Auth::check() && $member->id != $u->id) {
    ?>
					<?php 
    echo render('_parts/button_follow', array('member_id_from' => Auth::check() ? $u->id : 0, 'member_id_to' => $member->id, 'size' => $button_follow_size, 'attrs' => array('class' => array('ml10'))));
}
?>
				</<?php 
echo $member_name_tag;
?>
>
<?php 
if (!$is_simple_list && check_display_type(conf('profile.sex.displayType'), $display_type) && check_public_flag($member->sex_public_flag, $access_from) && ($sex = Site_Form::get_form_options4config('term.member.sex.options', $member->sex, true))) {
    ?>
			<div class="row">
				<div class="col-xs-4 u-alr"><label><?php