• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_picture函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: get_user_info

function get_user_info($result)
{
    /* starting from one of the results gotten from search_users()
     * we can build an array with the actual user information
     * by calling get_item() to extract the single LDAP items.
     * this data will end up in the main foreach() in index.php
     * which will display $key=>$value in a nice table,
     * that's why we're doing some HTML here (yes it's ugly but...)
     */
    $user_info['Picture'] = "<img src=" . get_picture($result) . " class=\"img-responsive\">";
    $user_info['Name'] = get_ldap_item("cn", $result);
    $user_info['Title'] = get_ldap_item("title", $result);
    if (get_ldap_item("mail", $result) != "") {
        // doing some more checks on this one or we'll return invalid HTML
        $user_info['Internet Email'] = "<a href=\"mailto:" . get_ldap_item("mail", $result) . "\">" . get_ldap_item("mail", $result) . "</a>";
    }
    if (get_ldap_item("othermailbox", $result) != "") {
        // as above, also can't use empty() for PHP 5.4 compatibility
        $user_info['Personal Email'] = "<a href=\"mailto:" . get_ldap_item("othermailbox", $result) . "\">" . get_ldap_item("othermailbox", $result) . "</a>";
    }
    $user_info['Phone'] = get_ldap_item("telephonenumber", $result);
    $user_info['Mobile'] = get_ldap_item("mobile", $result);
    $user_info['Extension (Global)'] = get_ldap_item("pager", $result);
    $user_info['Address'] = get_ldap_item("street", $result) . " " . get_ldap_item("postalcode", $result) . " " . get_ldap_item("l", $result) . " " . get_ldap_item("st", $result);
    $user_info['Manager'] = "dn: " . get_ldap_item("manager", $result);
    $user_info['Uid'] = get_ldap_item("uid", $result);
    $user_info['Posix User'] = "login: " . get_ldap_item("uid", $result) . " - uid: " . get_ldap_item("uidnumber", $result) . " - gid: " . get_ldap_item("gidnumber", $result) . " - shell: " . get_ldap_item("loginshell", $result);
    // we're exploiting array_filter to clean up empty entries
    // so that we don't have ugly empty rows in the search results table
    $user_info = array_filter($user_info);
    return $user_info;
}
开发者ID:Wide-Net,项目名称:widepages,代码行数:32,代码来源:ldaputils.php


示例2: main_f

function main_f()
{
    if (isset($_SERVER['HTTP_REFERER'])) {
        $ar = get_words($_SERVER['HTTP_REFERER']);
        connect();
        if (count($ar) > 0) {
            foreach (array_reverse($ar, true) as $key => $val) {
                $sres = sql("select picture, name from ln_product where name like '%" . $key . "%' and picture is not null order by rating desc limit 0,1");
                if ($ar_res = mysql_fetch_assoc($sres)) {
                    //write_log($key);
                    get_picture($ar_res['picture']);
                    break;
                }
            }
        }
        disconnect();
    }
}
开发者ID:vitsun,项目名称:igrushki-detkam,代码行数:18,代码来源:index.php


示例3: _e

                                  <th><?php 
                _e("Total");
                ?>
</th>
                                </tr>
                              </thead>
                              <tbody>
                                <?php 
                foreach ($cart_items as $cart_item) {
                    ?>
                                <tr class="mw-order-item mw-order-item-1">
                                  <td class="mw-order-item-image" width="35">


                <?php 
                    $p = get_picture($cart_item['rel_id']);
                    ?>
                <?php 
                    if ($p != false) {
                        ?>
                <span class="bgimg" style="width: 35px;height:35px;background-image:url(<?php 
                        print thumbnail($p, 120, 120);
                        ?>
);"></span>

                <?php 
                    }
                    ?>


开发者ID:hyrmedia,项目名称:microweber,代码行数:28,代码来源:client_inner.php


示例4: pages_tree


//.........这里部分代码省略.........
                         if (isset($item['subtype_value']) and intval($item['subtype_value']) != 0) {
                             $ext_classes .= ' have-category';
                         }
                         if (isset($item['is_active']) and $item['is_active'] == 'n') {
                             $ext_classes = $ext_classes . ' content-unpublished ';
                         }
                         $ext_classes = trim($ext_classes);
                         $the_active_class = $active_class;
                         if (is_callable($link)) {
                             $to_print = call_user_func_array($link, array($item));
                         } else {
                             $to_print = $link;
                         }
                         $to_print = str_replace('{id}', $item['id'], $to_print);
                         $to_print = str_replace('{active_class}', $active_class, $to_print);
                         $to_print = str_replace('{active_parent_class}', $active_parent_class, $to_print);
                         $to_print = str_replace('{exteded_classes}', $ext_classes, $to_print);
                         $to_pr_2 = str_replace('{exteded_classes}', $ext_classes, $to_pr_2);
                         $to_pr_2 = str_replace('{active_class}', $active_class, $to_pr_2);
                         $to_pr_2 = str_replace('{active_parent_class}', $active_parent_class, $to_pr_2);
                         $to_print = str_replace('{title}', $item['title'], $to_print);
                         $to_print = str_replace('{nest_level}', 'depth-' . $nest_level, $to_print);
                         $to_print = str_replace('{content_link_class}', $content_link_class, $to_print);
                         if (strstr($to_print, '{link}')) {
                             $to_print = str_replace('{link}', page_link($item['id']), $to_print);
                         }
                         $empty1 = intval($nest_level);
                         $empty = '';
                         for ($i1 = 0; $i1 < $empty1; ++$i1) {
                             $empty = $empty . '&nbsp;&nbsp;';
                         }
                         $to_print = str_replace('{empty}', $empty, $to_print);
                         if (strstr($to_print, '{tn}')) {
                             $content_img = get_picture($item['id']);
                             if ($content_img) {
                                 $to_print = str_replace('{tn}', $content_img, $to_print);
                             } else {
                                 $to_print = str_replace('{tn}', '', $to_print);
                             }
                         }
                         foreach ($item as $item_k => $item_v) {
                             $to_print = str_replace('{' . $item_k . '}', $item_v, $to_print);
                         }
                         ++$res_count;
                         if (isset($active_ids) and is_array($active_ids) == true) {
                             $is_there_active_ids = false;
                             foreach ($active_ids as $active_id) {
                                 if (intval($item['id']) == intval($active_id)) {
                                     $is_there_active_ids = true;
                                     $to_print = str_ireplace('{active_code}', $active_code, $to_print);
                                     $to_print = str_ireplace('{active_class}', $the_active_class, $to_print);
                                     $to_pr_2 = str_ireplace('{active_class}', $the_active_class, $to_pr_2);
                                     $to_pr_2 = str_ireplace('{active_code_tag}', $active_code_tag, $to_pr_2);
                                 }
                             }
                         } elseif (isset($active_ids) and !is_array($active_ids)) {
                             if (intval($item['id']) == intval($active_ids)) {
                                 $is_there_active_ids = true;
                                 $to_print = str_ireplace('{active_code}', $active_code, $to_print);
                                 $to_print = str_ireplace('{active_class}', $the_active_class, $to_print);
                                 $to_pr_2 = str_ireplace('{active_class}', $the_active_class, $to_pr_2);
                                 $to_pr_2 = str_ireplace('{active_code_tag}', $active_code_tag, $to_pr_2);
                             }
                         }
                         $to_print = str_ireplace('{active_code}', '', $to_print);
                         $to_print = str_ireplace('{active_class}', '', $to_print);
开发者ID:microweber,项目名称:microweber,代码行数:67,代码来源:ContentManager.php


示例5: get_categories

if (!isset($parent) or $parent == '') {
    $parent = 0;
}
$cats = get_categories('order_by=position asc&parent_id=' . $parent);
?>

<div class="categories-posts categories-posts-big mw-open-module-settings">
  <?php 
if ($cats != false) {
    foreach ($cats as $cat) {
        $latest_product = get_content("order_by=position desc&category=" . $cat['id']);
        if (isset($latest_product[0]) == false) {
            continue;
        }
        $latest_product = $latest_product[0];
        $pic = get_picture($latest_product['id']);
        ?>
  <a href="<?php 
        print category_link($cat['id']);
        ?>
"> <span class="bgimg" style="background-image: url(<?php 
        print thumbnail($pic, 1100, 1100);
        ?>
);"></span> <strong><?php 
        print $cat['title'];
        ?>
</strong> </a>
  <?php 
    }
} else {
    print lnotif('Select category');
开发者ID:Staalkoper,项目名称:templates,代码行数:31,代码来源:big.php


示例6: date

    echo date("F", strtotime($item['updated_at']));
    ?>
</span></time>
                    <i class="cbp_tmicon rounded-x hidden-xs"></i>
                    <div class="cbp_tmlabel">
                        <a href="<?php 
    print $item['url'];
    ?>
"><h2><?php 
    print $item['title'];
    ?>
</h2></a>
                        <div class="row">
                            <div class="col-md-4">
                                <img class="img-responsive" src="<?php 
    print thumbnail(get_picture($item['id']));
    ?>
" alt=""> 
                                <div class="md-margin-bottom-20"></div>
                            </div>
                            <div class="col-md-8">    
                                <?php 
    if (!isset($item['description']) or $item['description'] == '') {
        if (isset($item['content']) and $item['content'] != '') {
            $item['description'] = character_limiter(strip_tags($item['content']), $character_limit);
            $item['full_description'] = strip_tags($item['content']);
        } elseif (isset($item['content_body']) and $item['content_body'] != '') {
            $item['full_description'] = strip_tags($item['content']);
            $item['description'] = character_limiter(strip_tags($item['content_body']), $character_limit);
        }
    }
开发者ID:Staalkoper,项目名称:templates,代码行数:31,代码来源:timeline2.php


示例7: _e

      <div class="mw-ui-box mw-ui-box-order-info">
        <div class="mw-ui-box-header"> <span>
          <?php 
_e("Order Information");
?>
          </span> </div>
        <div class="mw-ui-box-content">
          <?php 
if (is_array($cart_items)) {
    ?>
          <div class="mw-order-images">
            <?php 
    for ($i = 0; $i < sizeof($cart_items); $i++) {
        ?>
            <?php 
        $p = get_picture($cart_items[$i]['rel_id']);
        ?>
            <?php 
        if ($p != false) {
            ?>
            <span data-index="<?php 
            print $i;
            ?>
" class="bgimage mw-order-item-image mw-order-item-image-<?php 
            print $i;
            ?>
" style="width: 70px;height:70px;background-image:url(<?php 
            print thumbnail($p, 120, 120);
            ?>
);"></span>
            <?php 
开发者ID:newaltcoin,项目名称:microweber,代码行数:31,代码来源:edit_order.php


示例8: index


//.........这里部分代码省略.........
                //$post_params['category']
                $post_params['category'] = $sub_categories;
                //$post_params['category'] = $post_params['category'];
            } else {
                if (isset($post_params['category']) and is_array($post_params['category']) and empty($post_params['category']) and isset($post_params['related']) and $post_params['related'] != false) {
                    if (defined('CATEGORY_ID') and CATEGORY_ID > 0) {
                        $post_params['category'] = CATEGORY_ID;
                    }
                }
            }
        }
        if (defined('POST_ID') and isset($posts_parent_category) and $posts_parent_category != false or isset($post_params['related'])) {
            $post_params['exclude_ids'] = POST_ID;
        }
        if (!isset($params['order_by'])) {
            //            if(isset($post_params['content_type']) and $post_params['content_type'] == 'page'){
            //                $post_params['order_by'] = 'position asc';
            //            } else {
            //
            //            }
            $post_params['order_by'] = 'position desc';
        }
        if (isset($params['search_in_fields']) and $params['search_in_fields'] != false) {
            $post_params['search_in_fields'] = $params['search_in_fields'];
        }
        $content = get_content($post_params);
        if ($posts_parent_related != false and empty($content) and isset($post_params['category'])) {
            unset($post_params['category']);
            $content = get_content($post_params);
        }
        $data = array();
        if (!empty($content)) {
            foreach ($content as $item) {
                $iu = get_picture($item['id'], $for = 'post', $full = false);
                if ($iu != false) {
                    $item['image'] = $iu;
                } else {
                    $item['image'] = false;
                }
                if ($item['image'] != false) {
                    $item['tn_image'] = thumbnail($item['image'], $tn[0], $tn[1]);
                } else {
                    $item['tn_image'] = false;
                }
                $item['content'] = htmlspecialchars_decode($item['content']);
                if (isset($item['created_at']) and trim($item['created_at']) != '') {
                    $item['created_at'] = date($date_format, strtotime($item['created_at']));
                }
                if (isset($item['updated_at']) and trim($item['updated_at']) != '') {
                    $item['updated_at'] = date($date_format, strtotime($item['updated_at']));
                }
                $item['link'] = content_link($item['id']);
                $item['full_description'] = '';
                if (!isset($item['description']) or $item['description'] == '') {
                    if (isset($item['content']) and $item['content'] != '') {
                        $item['description'] = character_limiter(strip_tags($item['content']), $character_limit);
                        $item['full_description'] = strip_tags($item['content']);
                    } elseif (isset($item['content_body']) and $item['content_body'] != '') {
                        $item['full_description'] = strip_tags($item['content']);
                        $item['description'] = character_limiter(strip_tags($item['content_body']), $character_limit);
                    }
                } else {
                    $item['full_description'] = trim($item['description']);
                    $item['description'] = character_limiter(strip_tags($item['description']), $character_limit);
                }
                if (isset($item['title']) and $item['title'] != '') {
开发者ID:hyrmedia,项目名称:microweber,代码行数:67,代码来源:Front.php


示例9: foreach

?>
            <?php 
$count = 0;
foreach ($posts as $item) {
    $count++;
    if ($count % 2 == 0) {
        print '<li class="timeline-inverted">';
    } else {
        print "<li>";
    }
    ?>
        
            <div class="timeline-panel">
                <div class="timeline-heading">
                    <img class="img-responsive" src="<?php 
    print get_picture($item['id']);
    ?>
" alt=""/>
                </div>

                <div class="timeline-body text-justify">
                    <h2><a href="<?php 
    print $item['url'];
    ?>
"><?php 
    print $item['title'];
    ?>
</a></h2>
                    <?php 
    if (!isset($item['description']) or $item['description'] == '') {
        if (isset($item['content']) and $item['content'] != '') {
开发者ID:Staalkoper,项目名称:templates,代码行数:31,代码来源:default.php


示例10: createthumb

 function createthumb()
 {
     if (IS_POST) {
         $info = array('status' => 2, 'info' => '', 'url' => '');
         $arccatid = I('post.article_catid');
         $catid = I('post.category_d');
         //查询是否有没有处理完的图片
         $thumbpath = F('thumbpath');
         if (empty($thumbpath)) {
             //开始查询要处理的图片数据
             $temarr = array();
             $map['pic'] = array('neq', 0);
             if ($arccatid != 0) {
                 $map['category_id'] = $arccatid;
             }
             $list = M('Article')->where($map)->field('pic')->select();
             foreach ($list as $val) {
                 $temarr[] = $val['pic'];
             }
             if ($catid != 0) {
                 $map['category_id'] = $catid;
             }
             $list = M('goods')->where($map)->field('pic,xc')->select();
             foreach ($list as $val) {
                 $temarr[] = $val['pic'];
                 //拆分相册
                 $xcarr = explode('|', $val['xc']);
                 foreach ($xcarr as $val) {
                     $temarr[] = $val;
                 }
             }
             //把查到的数量保存到缓存中
             F('thumbpath', $temarr);
             $thumbpath = $temarr;
         }
         //开始生成图片
         $jishu = 0;
         //处理的总数量
         $sucstr = '';
         //成功字符串
         $failjishu = 0;
         //失败的数量
         $failstr = '';
         //错误字符串
         $num = count($thumbpath);
         $num = $num > 50 ? 50 : $num;
         //一次只处理50个数据
         $i = 0;
         for ($i; $i < $num; $i++) {
             if (count($thumbpath) > 0) {
                 $spath = get_picture($thumbpath[$i], 'path');
                 $thupath = str_replace('image/', 'image/thumb/', $spath);
                 $spath = path_a($spath);
                 $dpath = str_replace('image/', 'image/thumb/', $spath);
                 if (file_exists($spath)) {
                     //源文件存在
                     if (file_exists($dpath)) {
                         unlink($dpath);
                     }
                     $result = create_thumb($spath, $dpath, C('THUMB_WIDTH'), C('THUMB_HEIGHT'));
                     if ($result === true) {
                         M('Picture')->where("id={$thumbpath[$i]}")->save(array('thumbpath' => $thupath));
                         $jishu++;
                         $sucstr .= $spath . '->' . $dpath . '<br>';
                     } else {
                         $failjishu++;
                         $failstr .= $spath . '->' . $dpath . '<br>';
                     }
                 } else {
                     $failjishu++;
                     $failstr .= '<span style="color:red;">' . $spath . "此路径文件丢失数据库id为{$thumbpath[$i]}请联系管理员自行处理</span><br>";
                 }
                 unset($thumbpath[$i]);
             }
         }
         $tishistr = '全部完成';
         if (count($thumbpath) <= 0) {
             $info['status'] = 1;
         } else {
             $tishistr = '还剩' . count($thumbpath) . '个。继续生成中......';
         }
         F('thumbpath', array_values($thumbpath));
         $info['info'] = "成功生成{$jishu}个缩略图,失败{$failjishu}个,{$failstr},{$tishistr}";
         $this->ajaxreturn($info);
         exit;
     } else {
         //文章分类树
         $catelist = F('sys_category_tree');
         if (empty($catelist)) {
             $catelist = F_get_cate_list(true, 'article');
             F('sys_category_tree', $catelist);
         }
         $catelist[0] = '全部分类';
         $field = array(array('field' => 'arccat_catid', 'name' => 'arccat_catid', 'type' => 'select', 'title' => '文章分类', 'note' => '', 'extra' => $catelist, 'is_show' => 3));
         $this->assign('fieldarr1', $field);
         $this->display();
     }
 }
开发者ID:735579768,项目名称:Ainiku,代码行数:98,代码来源:FileController.class.php


示例11: mysql_query

    $childs = mysql_query($query);
    $count = 0;
    while ($child = mysql_fetch_assoc($childs)) {
        ?>
                                <center>
                                    <?php 
        if ($count % 3 == 2) {
            ?>
                                        <div class="row">
                                            <?php 
        }
        ?>

                                        <div class="col-xs-4">
                                            <?php 
        $picture_name = get_picture($child['ID']);
        if ($picture_name) {
            ?>
                                                <img src="../../picture/<?php 
            echo $picture_name;
            ?>
" class="img-rounded" alt="Responsive image" width=100px height=100px > 
                                                <?php 
        } else {
            if ($child['GENDER_ID'] == 0) {
                ?>
                                                    <img src="../../picture/Non.jpg" class="img-rounded" alt="Responsive image" width=100px height=100px > 
                                                    <?php 
            }
            if ($child['GENDER_ID'] == 1) {
                ?>
开发者ID:batman1292,项目名称:linhainan,代码行数:31,代码来源:family_tree_detail.php


示例12: get_picture

                                        <?php 
}
?>
                                        <?php 
if ($next != false) {
    ?>
                                            <a href="<?php 
    print $next['url'];
    ?>
"
                                               class="mw-icon-arrow-right-slim next-content tip"
                                               data-tip="#next-tip"></a>
                                            <div id="next-tip" style="display: none">
                                                <div class="next-previous-tip-content">
                                                    <img src="<?php 
    print get_picture($next['id']);
    ?>
" alt="" width="90"/>
                                                    <h6><?php 
    print $next['title'];
    ?>
</h6>
                                                </div>
                                            </div>
                                        <?php 
}
?>
                                    </div>
                                </div>
                            </div>
                            <h2 class="edit post-title" field="title" rel="post" style="padding: 20px 0 10px;">Product inner page</h2>
开发者ID:Staalkoper,项目名称:templates,代码行数:31,代码来源:shop_inner.php


示例13: get_picture

                                  </div>
                              </div>
                          <?php 
}
?>
                          <?php 
if ($prev != false) {
    ?>
                              <a href="<?php 
    print $prev['url'];
    ?>
" class="mw-icon-arrow-right-slim prev-content tip" data-tip="#prev-tip"></a>
                              <div id="prev-tip" style="display: none">
                                  <div class="next-previous-tip-content">
                                      <img src="<?php 
    print get_picture($prev['id']);
    ?>
" alt="" width="90" />
                                      <h6><?php 
    print $prev['title'];
    ?>
</h6>
                                  </div>
                              </div>
                          <?php 
}
?>

                          </div>
                      </div>
                  </div>
开发者ID:Staalkoper,项目名称:templates,代码行数:31,代码来源:portfolio_inner.php


示例14: foreach

?>
 
<?php 
if ($categories) {
    ?>
<div class="categories-grid">
  <?php 
    foreach ($categories as $category) {
        ?>
  <a href="<?php 
        print category_link($category['id']);
        ?>
" class="category-grid-item">
    <span class="category-grid-item-content">
      <?php 
        $cat_image = get_picture($category['id'], 'categories');
        ?>
      <span class="category-image" style="background-image: url('<?php 
        if ($cat_image) {
            print $cat_image;
        }
        ?>
');"></span> <strong><?php 
        print $category['title'];
        ?>
</strong>
    </span>
  </a>
  <?php 
    }
    ?>
开发者ID:Staalkoper,项目名称:templates,代码行数:31,代码来源:pictured.php


示例15: get_picture

?>
" >
                        </div>
                        <div class="col-xs-2 " style="margin-top:0" id="notPrint">
                            <a class="btn btn-material-teal" role="button" style="margin-top: 0px" onclick="javascript:window.open('../../print/edit.php?id=<?php 
echo $id;
?>
', '', 'nenuber=no,toorlbar=no,location=no,scrollbars=no, status=no,resizable=no,width=800,height=650,top=0,left=150 ')"><i class="mdi-action-print"></i>พิมพ์</a>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-2">
                            <img id="output"
                            <?php 
$picture_name = get_picture($id);
if ($picture_name) {
    echo 'src="../../picture/' . $picture_name . '"';
} else {
    echo 'src="../../picture/non.jpg"';
}
?>
                                 class="img-rounded" alt="Responsive image" width=100px height=100px >
                        </div>
                        <div class="col-xs-6" style="margin-top:0">
                            <input type="file" name="picture" id="picture" data-input="false"  class="filestyle" data-buttonText="เปลี่ยนรูปประจำตัว" accept="image/*" value="fasfs" onchange="ValidateSingleInput(this);">
                        </div>
                        <div class="col-xs-2" style="margin-top:10">
                            ผู้ติดตามจำนวน
                        </div>
                        <div class="col-xs-1" style="margin-top:10">
开发者ID:batman1292,项目名称:linhainan,代码行数:31,代码来源:edit_form.php


示例16: foreach

                                          <th>Title</th>
                                          <th>Quantity</th>
                                          <th>Price</th>
                                          <th>Total</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                           <?php 
            foreach ($cart as $product) {
                ?>
                                           <?php 
                $theproduct = get_content_by_id($product['rel_id']);
                ?>
                                             <tr>
                                                <td><img src="<?php 
                print get_picture($theproduct['id']);
                ?>
" width="70" alt="" /> </td>
                                                <td><?php 
                print $theproduct['title'];
                ?>
</td>
                                                <td><?php 
                print $product['qty'];
                ?>
</td>
                                                <td><?php 
                print $product['price'];
                ?>
</td>
                                                <td><?php 
开发者ID:Staalkoper,项目名称:templates,代码行数:31,代码来源:profile.php


示例17: echo_invalid_param

        if (!isset($json->{'ShopId'})) {
            echo_invalid_param($json);
        }
        get_shop_info($json);
        break;
    case OPCODE::SERVICE_GET_SHOP_INFO_REQUEST_BY_BSSID:
        if (!isset($json->{'BSSID'})) {
            echo_invalid_param($json);
        }
        get_shop_info_by_bssid($json);
        break;
    case OPCODE::SERVICE_GET_PICTURE_REQUEST:
        if (!isset($json->{'ShopId'})) {
            echo_invalid_param($json);
        }
        get_picture($json);
        break;
    case OPCODE::SERVICE_GET_PROMOTION_REQUEST:
        if (!isset($json->{'ShopId'})) {
            echo_invalid_param($json);
        }
        get_promotion($json);
        break;
}
function get_requested_co_promotion($json)
{
    $database = new Database();
    $coProTbl = $database->getCoPromotionTbl();
    $promotionTbl = $database->getPromotionTbl();
    $copros = $coProTbl->getAllRequested($json->{'ShopId'});
    $ret_array = array();
开发者ID:pattadonprapin,项目名称:wlbsapp,代码行数:31,代码来源:getting_transaction.php


示例18: get_picture

        ?>
      <tr class="mw-cart-item mw-cart-item-<?php 
        print $item['id'];
        ?>
">
        <td><?php 
        if (isset($item['item_image']) and $item['item_image'] != false) {
            ?>
          <?php 
            $p = $item['item_image'];
            ?>
          <?php 
        } else {
            ?>
          <?php 
            $p = get_picture($item['rel_id']);
            ?>
          <?php 
        }
        ?>
          <?php 
        if ($p != false) {
            ?>
          <img height="70" class="img-polaroid img-rounded mw-order-item-image mw-order-item-image-<?php 
            print $item['id'];
            ?>
" src="<?php 
            print thumbnail($p, 70, 70);
            ?>
"  />
          <?php 
开发者ID:hyrmedia,项目名称:microweber,代码行数:31,代码来源:big.php


示例19: array

<?php

//session_start();
require 'functions.php';
$allowedExts = array("jpg", "jpeg", "gif", "png");
$extension = pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION);
if (($_FILES["file"]["type"] == "image/pjpeg" || $_FILES["file"]["type"] == "image/gif" || $_FILES["file"]["type"] == "image/jpeg") && $_FILES["file"]["size"] < 800000 && in_array($extension, $allowedExts)) {
    if ($_FILES["file"]["error"] > 0) {
        echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
    } else {
        // $conn=connect();
        // $query="select max(id) as max from news";
        // $res=mysqli_query($conn,$query);
        // $row=mysqli_fetch_assoc($res);
        // $id=$row['max']+1;
        $path = "../temp/" . $_FILES["file"]["name"];
        if (file_exists($path)) {
            echo $path . " already exists. ";
        } else {
            delete_uploaded_image();
            move_uploaded_file($_FILES["file"]["tmp_name"], $path);
            echo get_picture();
        }
    }
} else {
    echo "Invalid file";
}
开发者ID:albertartur,项目名称:Ecuador,代码行数:27,代码来源:add_image.php


示例20: get_picture

                    <div class="mw-ui-col manage-post-item-col-1">
                        <label class="mw-ui-check">
                            <input name="select_posts_for_action" class="select_posts_for_action" type="checkbox"
                                   value="<?php 
            print $item['id'];
            ?>
" onclick="mw.admin.showLinkNav();">
                            <span></span> </label>
        <span class="mw-icon-drag mw_admin_posts_sortable_handle"
              onmousedown="mw.manage_content_sort()"></span></div>
                    <div class="mw-ui-col manage-post-item-col-2">
                    


                        <?php 
            $pic = get_picture($item['id']);
            ?>
                        <?php 
            if ($pic == true) {
                ?>
                            <a class="manage-post-image"
                               style="background-image: url('<?php 
                print thumbnail($pic, 108);
                ?>
');"
                               onClick="mw.url.windowHashParam('action','editpage:<?php 
                print $item['id'];
                ?>
');return false;"></a>
                        <?php 
            } else {
开发者ID:Git-Host,项目名称:microweber,代码行数:31,代码来源:manager.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_picture_path函数代码示例发布时间:2022-05-15
下一篇:
PHP get_pic_url函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap