コード例 #1
0
ファイル: readmoreup.php プロジェクト: patilstar/HMVC-WITH-CI
                                                                   </div> 
                                                                  </div>
                                                    
                                                            </div>
                                                            
                                                            
                                                            </div>
                                            
                                            
                                                         
                                                      
                                                      </li>
                                                      <li class="collection-user">
                   <span data-toggle="dropdown" aria-expanded="true" class="dropdown-toggle user-info-css"> 
 <?php 
                echo username_photo_by_id($users_collection_val['user_id']);
                ?>

<div role="menu" class="dropdown-menu collection-user-info-css common-card">

<?php 
                echo user_info_id($users_collection_val['user_id']);
                ?>

</div>                                  

</span>
                                                      </li> 
               <li class="last"><i class="fa fa-comment-o"></i> <?php 
                echo comment_count_collection($users_collection_val['id']);
                ?>
コード例 #2
0
                              
                              <div class="story-main-left">
                <div class="col-lg-12 col-md-12 col-sm-12 main-info-css">
                  <div class="story-con-user common-new">
                      
                      

                      <div class="story-con-img">
                        <a href="<?php 
echo base_url();
?>
usersinfo/<?php 
echo $res['user_id'];
?>
" target="_blank">  <?php 
echo username_photo_by_id($res['user_id']);
?>
</a>
                       </div> 
                      <p>by <a href="<?php 
echo base_url();
?>
usersinfo/<?php 
echo $res['user_id'];
?>
" target="_blank">
                        <?php 
echo $sd_user['first_name'] . ' ' . $sd_user['last_name'];
?>
</a></p>
                        <p>
コード例 #3
0
    function comments_data_id($story_id, $comment_id)
    {
        $ci =& get_instance();
        $pop = '';
        $html = '  <div id="comment_show_' . $comment_id . '">';
        $comment_reply = $ci->db->query("select * from comments where section_type_id='" . $story_id . "' and section_type='2' and parent_comment_id='" . $comment_id . "' order by id desc")->result_array();
        foreach ($comment_reply as $comment_reply_val) {
            $comment_reply_user = user_allinfo_id($comment_reply_val['user_id']);
            if ($ci->session->userdata('user_logged') != '') {
                $htmlsecondreply = 'onclick="increase_comment(3,' . $comment_reply_val['id'] . ',' . $ci->session->userdata('_current_user_id') . ');"';
            } else {
                $htmlsecondreply = 'data-toggle="modal" data-target="#common-form"';
            }
            $html .= '<div class="comment-box-css-reply">
					<div class="col-lg-1 col-md-2 col-sm-2">
					<a href="javascript:;"  class="avatar-image-css">' . username_photo_by_id($comment_reply_val['user_id']) . '
					</a>
					</div>
					<div class="col-lg-11 col-md-10 col-sm-10">
					<div class="comment-main-box">
					<div class="name-user">' . $comment_reply_user['first_name'] . ' ' . $comment_reply_user['last_name'] . '<span class="color-grey">  ' . $comment_reply_user['professional_skills'] . ' </span></div> 
					<p>' . $comment_reply_val['comments'] . '</p>
					<div class="share-list">
					<a ' . $htmlsecondreply . ' href="javascript:;" ><i class="fa  fa-caret-up"></i>Upvote <span id="comments_3_' . $comment_reply_val['id'] . '">' . vote_count_by_id('3', $comment_reply_val['id']) . '</span> </a>
					<a href="javascript:;" class="days-after">' . get_days_count_from_dates($comment_reply_val['created_date'], date('Y-m-d')) . '</a>
					</div>
					</div> 
					</div>
					</div>  ';
        }
        $html .= ' <div> ';
        return $html;
    }
コード例 #4
0
                                                                </div>
                                                  
                                                          </div>
                                                          
                                                          
                                                          </div>                                                     
                                                      </span>
                                                        
                                                      </li>
                                                      
                                                        <li class="collection-user"  >


 <span data-toggle="dropdown" aria-expanded="true" class="dropdown-toggle user-info-css"> 
  <?php 
        echo username_photo_by_id($collection_list_val->user_id);
        ?>

<div role="menu" class="dropdown-menu collection-user-info-css common-card">

<?php 
        echo user_info_id($collection_list_val->user_id);
        ?>

</div>                                   

</span>


<!-- <div class="user-info-image common-dropdown">
<span href="javascript:;" aria-expanded="true" data-toggle="dropdown" class="dropdown-toggle user-info-css"> 
コード例 #5
0
ファイル: story_view.php プロジェクト: patilstar/HMVC-WITH-CI
                        </div>
                      <div class="col-lg-11 col-md-11 col-sm-10 col-xs-10 top-short-story-css  pro-left">
                        <h4 class="see-more-story" id="<?php 
        echo $val['id'] . '_' . $val['url_slug'];
        ?>
"> <?php 
        echo $val['title'];
        ?>
</h4>
                         <ul>
                            <li >

                            <div class="user-info-image common-dropdown">
                           <span href="javascript:;" aria-expanded="true" data-toggle="dropdown" class="dropdown-toggle user-info-css"> 
                          <?php 
        echo username_photo_by_id($val['user_id']);
        ?>
                            
                            <div class="dropdown-menu collection-user-info-css common-card" role="menu">                             
                             <?php 
        echo user_info_id($val['user_id']);
        ?>
                              
                               </div>

                            </span> </div>

                            </li>                                                  
                             <li><span class="grey-color">by</span> <a href="<?php 
        echo base_url();
        ?>
コード例 #6
0
        function comments_data_id_col($story_id, $comment_id, $limit = '0')
        {
            $ci =& get_instance();
            $pop = '';
            if ($limit > 0) {
                $limit_data = 'LIMIT ' . $limit;
            } else {
                $limit_data = '';
            }
            $html2 = '  <div id="comment_show_' . $comment_id . '">';
            $comment_reply = $ci->db->query("select * from comments where section_type_id='" . $story_id . "' and section_type='0' and parent_comment_id='" . $comment_id . "' order by id desc {$limit_data}")->result_array();
            foreach ($comment_reply as $comment_reply_val) {
                $user_link1 = base_url() . 'usersinfo/' . $comment_reply_val['user_id'];
                $comment_reply_user = user_allinfo_id($comment_reply_val['user_id']);
                $onclick_comment2 = array('user_id' => $ci->session->userdata('user_logged'), 'section_title' => $comment_reply_val['comments'], 'section_type' => '3', 'section_type_action' => 'upvote', 'section_action_id' => $comment_reply_val['id']);
                $vote2 = vote_count_by_id('3', $comment_reply_val['id']);
                $vote_msg2 = $vote2 > 0 ? '<span id="comment_3_' . $comment_reply_val['id'] . '">' . $vote2 . '</span>' : '<span id="comment_3_' . $comment_reply_val['id'] . '">Upvote</span>';
                $html2 .= '<div class="comment-box-css-reply">
					<div class="col-lg-1 col-md-2 col-sm-2">
					<a href="' . $user_link1 . '"  class="avatar-image-css" target="_blank">' . username_photo_by_id($comment_reply_val['user_id']) . '
					</a>
					</div>
					<div class="col-lg-11 col-md-10 col-sm-10">
					<div class="comment-main-box">
					<div class="name-user"><a href="' . base_url() . 'usersinfo/' . $comment_reply_user['id'] . '" target="_blank" >' . $comment_reply_user['first_name'] . ' ' . $comment_reply_user['last_name'] . '</a><span class="color-grey">  ' . $comment_reply_user['professional_skills'] . ' </span></div> 
					<p>' . $comment_reply_val['comments'] . '</p>
					<div class="share-list">
					<a ' . onclick_upvote($onclick_comment2) . ' href="javascript:;" ><i class="fa  fa-caret-up"></i>' . $vote_msg2 . '</a>

					<a href="javascript:;" class="days-after">' . get_days_count_from_dates($comment_reply_val['created_date'], date('Y-m-d')) . '</a>
					</div>
					</div> 
					</div>
					</div>  ';
            }
            $html2 .= ' </div> ';
            return $html2;
        }
コード例 #7
0
ファイル: index.php プロジェクト: patilstar/HMVC-WITH-CI
                                   <a class="left carousel-control" href="#similar-product" data-slide="prev"><i class="fa fa-angle-left"></i></a>

                                   <a class="right carousel-control" href="#similar-product" data-slide="next"><i class="fa fa-angle-right"></i></a>
                              </div>
                                              
                               </div>
                        </div>
                        
                        <div class="fixed-user-strip">
          
                           <div class="list-user-info">
                               <ul>
                                  <li class="collection-user">
                                            
                                     <span class="common-card-css"> <?php 
echo username_photo_by_id($collection['user_id']);
?>
                                                        
                                                <div class="collection-user-info-css common-card">
                                                   <div class="common-card-mid"> 
                                                    <a class="bg-new-css" href="javascript:;">
                                                         <?php 
echo user_info_id($collection['user_id']);
?>
                                                    
                                                    </a>
                                                 </div>
                                                </div>
                                                        
                                          </span>       
                                        
コード例 #8
0
ファイル: users_list.php プロジェクト: patilstar/HMVC-WITH-CI
                                            <tr>
                                                <th>Image</th>
                                                <th>Username</th>
                                                <th>Full Name</th>
                                                <th>Created On</th>
                                                <th>Status</th>
                                                <th>Actions</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                           <?php 
foreach ($allUsers as $key => $users) {
    ?>
                                            <tr class="odd gradeX">
                                                 <td><?php 
    echo username_photo_by_id($users["id"]);
    ?>
</td>
                                                <td><?php 
    echo $users["username"];
    ?>
</td>
                                                <td><?php 
    echo $users["first_name"] . ' ' . $users["last_name"];
    ?>
</td>
                                               <td><?php 
    echo $users['created_at'];
    ?>
</td>
                                                <?php 
コード例 #9
0
ファイル: users_view.php プロジェクト: patilstar/HMVC-WITH-CI
                       
                  
                </div>
                
                
                <div id="following" class="tab-pane fade">
                  
                     <?php 
if (is_array($users_following) && !empty($users_following)) {
    foreach ($users_following as $users_following_val) {
        ?>
                       <div class="main-watchers">
                            <div class="col-xl-2 col-lg-2 col-md-2 col-sm-2">
                              <div class="watchers-left">
                                <?php 
        echo username_photo_by_id($users_following_val['id']);
        ?>
                             </div>
                              
                            
                            </div> 
                            <div class="col-xl-10 col-lg-10 col-md-10 col-sm-10">
                              <div class="watcher-panel">
                              <div class="watcher-panel-inner">

                                  <div class="watchers-left-panel">
                                <h4><?php 
        echo $users_following_val['first_name'] . ' ' . $users_following_val['last_name'];
        ?>
<span><a href="javascript:;"><?php 
        echo username_show($users_following_val['username']);
コード例 #10
0
                            <li> <a href="javascript:;"> <span class="notification-left"><img src="<?php 
    echo $this->config->item('link_base_url');
    ?>
assets/curatigo/images/avatar_small.jpg"></span> <span class="notification-right">
                              <h4>David Nester - Commented on your wall</h4>
                              <p> Meeting postponed to tomorrow </p>
                              <time> A min ago </time>
                              </span> </a> </li>
                          </ul>
                           </span>  </span>
                        
                        </li>
                        <li class="btn-group header-user-login">
                          <span class="dropdown-toggle cog-css">
                            <?php 
    echo username_photo_by_id($this->session->userdata('_current_user_id'));
    ?>
                            <ul role="menu" class="dropdown-menu account-info-css">
                            
                            <li><a href="<?php 
    echo base_url();
    ?>
usersinfo/<?php 
    echo $this->session->userdata('_current_user_id');
    ?>
">My Profile </a> </li>
                            <!-- <li><a href="javascript:;">My Account </a> </li>
                            <li><a href="javascript:;">My Feeds</a></li>
                            <li><a href="javascript:;">My Dashboard</a></li>
                            <li><a href="javascript:;">My Collections</a></li>
                            <li><a href="javascript:;">My Shop</a></li> -->